Skip to content

Commit

Permalink
Use non-blocking reads for uwsgi websocket handles
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Mar 2, 2017
1 parent 10ebccf commit 4148c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engineio/async_gevent_uwsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def wait(self):
# maybe there is something to receive, if not, at least
# ensure uWSGI does its ping/ponging
try:
msg = uwsgi.websocket_recv()
msg = uwsgi.websocket_recv_nb()
except IOError: # connection closed
self._select_greenlet.kill()
return None
Expand Down

0 comments on commit 4148c94

Please sign in to comment.