httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <>
Subject Re: What is the purpose of saferead?
Date Wed, 14 Jun 2000 14:46:09 GMT
Yes, I have it now.  ioctlsocket should work, but since I am trying to avoid using select,
the logic will be a bit different from Unix.


> > It seems to be an optimization for handling pipelined requests. Rather than
> > flushing the output buffers after handling a request, we do a non-blocking read
to see
> if
> > another request (presumably a pipelined request) is on the wire. If another request
> > read, we handle it and the response can be pipelined back to the client along with
> > earlier response. Is this about right?
> >
> > Doing the non-blocking read is really causing me a headache with Windows. I don't
> how
> > to do a non-blocking read on Windows w/o using select (which is a performance hog).
> can
> > do an async read, but managing the i/o buffer on an async read is more than I care
> deal
> > with right now. Would it be acceptable to bypass the saferead on Windows and do
> > unconditional flush on the output buffer when we are done handling the request?
> >
> Hummm, perhaps ioctlsocket will make a socket non-blocking.... Investigating...
> Bill

View raw message