You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of the recvxxxx routines check self.buffer before calling self._recv which skips the fast-return path in self.recv (which does check self.buffer).
The text was updated successfully, but these errors were encountered:
Was reading the _recv code incorrectly, my mistake.
def _recv(self, numb = 4096, timeout = 'default'):
"""_recv(numb = 4096, timeout = 'default') -> str
Recieves one chunk of from the internal buffer or from the OS if the
buffer is empty.
"""
# If there is already data, go with that
if self.buffer:
data = self.buffer.pop()
else: # <-- Zach's brain says to ignore this
if timeout == 'default':
None of the
recvxxxx
routines checkself.buffer
before callingself._recv
which skips the fast-return path inself.recv
(which does checkself.buffer
).The text was updated successfully, but these errors were encountered: