We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d605b3a + a6cbbc5 commit 98c6d8fCopy full SHA for 98c6d8f
1 file changed
lib/request/connect.py
@@ -396,6 +396,7 @@ def getPage(**kwargs):
396
397
if websocket_:
398
ws = websocket.WebSocket()
399
+ ws.settimeout(timeout)
400
ws.connect(url, header=("%s: %s" % _ for _ in headers.items() if _[0] not in ("Host",)), cookie=cookie) # WebSocket will add Host field of headers automatically
401
ws.send(urldecode(post or ""))
402
page = ws.recv()
0 commit comments