Ignore:
Timestamp:
01/09/2006 00:40:18 (6 years ago)
Author:
chris
Message:

(refs #3)

Added support for non-blocking sockets on Win32 as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/lib/server/SocketStreamTLS.cpp

    r907 r908  
    138138        } 
    139139 
    140 #ifndef WIN32 
    141140        // Make the socket non-blocking so timeouts on Read work 
     141 
     142#ifdef WIN32 
     143        u_long nonblocking = 1; 
     144        ioctlsocket(socket, FIONBIO, &nonblocking); 
     145#else // !WIN32 
    142146        // This is more portable than using ioctl with FIONBIO 
    143147        int statusFlags = 0; 
     
    310314                case SSL_ERROR_WANT_READ: 
    311315                case SSL_ERROR_WANT_WRITE: 
    312                         // wait for the requried data 
     316                        // wait for the required data 
    313317                        // Will only get once around this loop, so don't need to calculate timeout values 
    314318                        if(WaitWhenRetryRequired(se, Timeout) == false) 
Note: See TracChangeset for help on using the changeset viewer.