mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 15:21:32 +00:00
Use start_timer_nodelay() in protocols which rely on the retry timer
to generate the initial transmission; this cuts off around 0.3s per instantiated connection.
This commit is contained in:
parent
0a3c2b80ea
commit
2ff1b1245b
@ -232,7 +232,7 @@ static int tcp_open ( struct xfer_interface *xfer, struct sockaddr *peer,
|
||||
goto err;
|
||||
|
||||
/* Start timer to initiate SYN */
|
||||
start_timer ( &tcp->timer );
|
||||
start_timer_nodelay ( &tcp->timer );
|
||||
|
||||
/* Attach parent interface, transfer reference to connection
|
||||
* list and return
|
||||
|
@ -912,7 +912,7 @@ int start_dhcp ( struct job_interface *job, struct net_device *netdev,
|
||||
goto err;
|
||||
|
||||
/* Start timer to initiate initial DHCPREQUEST */
|
||||
start_timer ( &dhcp->timer );
|
||||
start_timer_nodelay ( &dhcp->timer );
|
||||
|
||||
/* Attach parent interface, mortalise self, and return */
|
||||
job_plug_plug ( &dhcp->job, job );
|
||||
|
@ -657,7 +657,7 @@ int tftp_open ( struct xfer_interface *xfer, struct uri *uri ) {
|
||||
goto err;
|
||||
|
||||
/* Start timer to initiate RRQ */
|
||||
start_timer ( &tftp->timer );
|
||||
start_timer_nodelay ( &tftp->timer );
|
||||
|
||||
/* Attach to parent interface, mortalise self, and return */
|
||||
xfer_plug_plug ( &tftp->xfer, xfer );
|
||||
|
Loading…
Reference in New Issue
Block a user