Changeset 3537

Show
Ignore:
Timestamp:
01/19/06 17:13:42 (3 years ago)
Author:
morris
Message:

Check SSL_pending() before selecting

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/libwired/net/wi-socket.c

    r3531 r3537  
    10581058                wi_socket_set_blocking(socket, true); 
    10591059 
    1060         socket->direction = WI_SOCKET_WRITE
     1060        socket->direction = WI_SOCKET_READ
    10611061         
    10621062        return true; 
     
    14561456        int             bytes = -1; 
    14571457         
     1458#ifdef WI_SSL 
     1459        if(SSL_pending(socket->ssl) == 0 && timeout > 0.0) { 
     1460#else 
    14581461        if(timeout > 0.0) { 
     1462#endif 
    14591463                if(wi_socket_wait_descriptor(socket->sd, timeout, true, false) <= 0) 
    14601464                        goto end;