Changeset 3669

Show
Ignore:
Timestamp:
18/11/08 18:42:44 (7 weeks ago)
Author:
dmeyer
Message:

do not override _update_read_monitor

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/base/src/net/tls.py

    r3667 r3669  
    151151        # readline() may not work correctly (due to a race condition 
    152152        # described in IOChannel._handle_read) 
    153         return self._handshake or super(TLSSocket, self)._is_read_connected() 
    154  
     153        return not self._handshake and super(TLSSocket, self)._is_read_connected() 
    155154 
    156155    def _handle_write(self): 
     
    161160            return 
    162161        return super(TLSSocket, self)._handle_write() 
    163  
    164     def _update_read_monitor(self, signal=None, change=None): 
    165         """ 
    166         Update read IOMonitor to register or unregister based on if there are 
    167         any handlers attached to the read signals.  If there are no handlers, 
    168         there is no point in reading data from the channel since it will go  
    169         nowhere.  This function will deactivate this functionality while 
    170         performing the TLS handshake. 
    171         """ 
    172         if self._handshake: 
    173             return 
    174         return super(TLSSocket, self)._update_read_monitor(signal, change) 
    175162 
    176163    @kaa.coroutine()