You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@worldgate.com> on 1998/01/10 09:18:19 UTC

found reason for CGI buffering

Check out bnonblock in buff.c

#if defined(O_NONBLOCK)
...
#elif defined(F_NDELAY)
...
#else
return 0;
#endif

I think that explains it pretty well.

As far as I can see, win32 has no easy way to make descriptors
nonblocking.  You have to do a ReadFromFile and then a waitforsomething or
something like that and you can probably do the same thing.  Is darn ugly
though because every single loop where EAGAIN is checked for this reason
has to be redone with a macro or something.  There is a function to make
sockets nonblocking, but that doesn't help here.