Browse Source

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.
tags/v0.9.3
Michael Brown 17 years ago
parent
commit
2ff1b1245b
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/net/tcp.c
  2. 1
    1
      src/net/udp/dhcp.c
  3. 1
    1
      src/net/udp/tftp.c

+ 1
- 1
src/net/tcp.c View File

232
 		goto err;
232
 		goto err;
233
 
233
 
234
 	/* Start timer to initiate SYN */
234
 	/* Start timer to initiate SYN */
235
-	start_timer ( &tcp->timer );
235
+	start_timer_nodelay ( &tcp->timer );
236
 
236
 
237
 	/* Attach parent interface, transfer reference to connection
237
 	/* Attach parent interface, transfer reference to connection
238
 	 * list and return
238
 	 * list and return

+ 1
- 1
src/net/udp/dhcp.c View File

912
 		goto err;
912
 		goto err;
913
 
913
 
914
 	/* Start timer to initiate initial DHCPREQUEST */
914
 	/* Start timer to initiate initial DHCPREQUEST */
915
-	start_timer ( &dhcp->timer );
915
+	start_timer_nodelay ( &dhcp->timer );
916
 
916
 
917
 	/* Attach parent interface, mortalise self, and return */
917
 	/* Attach parent interface, mortalise self, and return */
918
 	job_plug_plug ( &dhcp->job, job );
918
 	job_plug_plug ( &dhcp->job, job );

+ 1
- 1
src/net/udp/tftp.c View File

657
 		goto err;
657
 		goto err;
658
 
658
 
659
 	/* Start timer to initiate RRQ */
659
 	/* Start timer to initiate RRQ */
660
-	start_timer ( &tftp->timer );
660
+	start_timer_nodelay ( &tftp->timer );
661
 
661
 
662
 	/* Attach to parent interface, mortalise self, and return */
662
 	/* Attach to parent interface, mortalise self, and return */
663
 	xfer_plug_plug ( &tftp->xfer, xfer );
663
 	xfer_plug_plug ( &tftp->xfer, xfer );

Loading…
Cancel
Save