Re: Extraneous socket read?

2001-07-07 Thread dean gaudet
On Mon, 2 Jul 2001, Brian Pane wrote: On Mon, 2 Jul 2001, Brian Pane wrote: then it should be possible to eliminate a system call by not doing the initial read before the select. Here's a patch that disables the read before the select, but only for the HTTP client socket. hey brian, i

Re: Extraneous socket read?

2001-07-07 Thread Brian Pane
dean gaudet wrote: On Mon, 2 Jul 2001, Brian Pane wrote: On Mon, 2 Jul 2001, Brian Pane wrote: then it should be possible to eliminate a system call by not doing the initial read before the select. Here's a patch that disables the read before the select, but only for the HTTP client socket. hey

Re: Extraneous socket read?

2001-07-07 Thread dean gaudet
On Sat, 7 Jul 2001, Brian Pane wrote: If I'm reading the code right, there's one problem with this approach: the APR_INCOMPLETE_READ flag doesn't get set until after the first read on a socket, so the first read on a new connection (the one that usually returns EAGAIN) doesn't get skipped