httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Apache 2.0/NSPR
Date Fri, 11 Sep 1998 23:25:03 GMT


On Fri, 11 Sep 1998, Simon Spero wrote:

> 
> On Fri, 11 Sep 1998, Dean Gaudet wrote:
> 
> [some stuff I'll get to later when I'm awake - i'll just do the easy one
>  here :)]
> 
> > > 	7.4) Allow connect_and_write (send data with syn)
> > > 	7.5) Allow accept_and_read( read data with syn, delay syn-ack).
> > 
> > I disagree... but only because I'm a linuxhead and syscalls are cheap ;) 
> 
> That's not really the point; the point of connect_and_write is to send
> data in the first packet (i.e. with the syn; avoids 1RTT per request). 
> accept_and_read makes that data available to the server and lets you send
> the first packet back with the syn-ack if you delay that. 

Hmm.  OK.  Assuming clients support it.

> btw - couldn't the file handle stuff be done with a tweak to clone()

Yup: 

pid_t clone2(void *sp, unsigned long flags, int *fds, size_t n_fds); 

fds[n] is dup'd into slot n in the child.  It's certainly an option. 

Dean



Mime
View raw message