Skip to content
This repository was archived by the owner on Aug 3, 2020. It is now read-only.

Add ping timeout to websocket #250

Merged
merged 1 commit into from
Jul 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add ping timeout to websocket
  • Loading branch information
Craig Jellick committed Jul 15, 2016
commit 2601bd7b462314ec73b4205feedee910ea9b254f
2 changes: 1 addition & 1 deletion cattle/agent/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def on_open(ws):
on_error=on_error,
on_close=on_close,
on_open=on_open)
ws.run_forever()
ws.run_forever(ping_interval=5, ping_timeout=4)

finally:
for child in self._children:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
git+https://github.com/rancher/websocket-client.git@v0.32.0-rancher1
mako
docker-py==1.7.2
portalocker
Expand All @@ -6,4 +7,3 @@ psutil
arrow
ndg-httpsclient
requests==2.9.1
websocket-client==0.32.0