Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Block on receiving from SSL socket
  • Loading branch information
awelkie committed Mar 29, 2017
1 parent b73d9e8 commit 8dc18ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ws4py/websocket.py
Expand Up @@ -387,10 +387,9 @@ def once(self):
logger.debug("WebSocket is already terminated")
return False
try:
b = self.sock.recv(self.reading_buffer_size)
if self._is_secure:
b = self._get_from_pending()
else:
b = self.sock.recv(self.reading_buffer_size)
b += self._get_from_pending()
if not b:
return False
self.buf += b
Expand Down

0 comments on commit 8dc18ad

Please sign in to comment.