| | 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) |