Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34ea83e

Browse files
author
zeekay
committed
Use timeout in GeventWebsocketMiddleware.
Fixes zeekay#3.
1 parent 32a7fc1 commit 34ea83e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flask_uwsgi_websocket/_gevent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def __call__(self, environ, start_response):
5353
recv_queue = Queue(maxsize=1)
5454

5555
# create websocket client
56-
client = self.client(environ, uwsgi.connection_fd(), send_event, send_queue, recv_event, recv_queue)
56+
client = self.client(environ, uwsgi.connection_fd(), send_event,
57+
send_queue, recv_event, recv_queue, self.websocket.timeout)
5758

5859
# spawn handler
5960
handler = spawn(handler, client)

0 commit comments

Comments
 (0)