Changeset 3667

Show
Ignore:
Timestamp:
17/11/08 14:49:15 (7 weeks ago)
Author:
dmeyer
Message:

do not pass TLS handshake data to clients

Files:
1 modified

Legend:

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

    r3664 r3667  
    162162        return super(TLSSocket, self)._handle_write() 
    163163 
     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) 
    164175 
    165176    @kaa.coroutine()