httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rasmus Lerdorf <ras...@lerdorf.on.ca>
Subject Re: non-blocking pipe on win32
Date Sun, 10 May 1998 15:39:31 GMT
> It's not possible to get a non-blocking pipe on win32, right?  I'm
> inferring this from the NSPR docs, and from something I recall here... 
> ISTR the unbuffered CGI stuff in 1.3 on NT doesn't work at all.  [why is
> microsoft so dense?]
> 
> I'm trying to figure out how to do the non-blocking stuff for CGIs in
> NSPR... looks like I'm going to have to use multiple threads and
> synchronize between them.

A non-blocking pipe as in a socket?  

#if WIN32|WINNT
        /* with ioctlsocket, a non-zero sets nonblocking, a zero sets blocking */
        flags=block;
        if(ioctlsocket(socketd,FIONBIO,&flags)==SOCKET_ERROR){
                php3_error(E_WARNING,"%s",WSAGetLastError());
                RETURN_FALSE;
        }else{
                RETURN_TRUE;
        }
#else

-Rasmus


Mime
View raw message