isra17 / autobahn-autoreconnect

Python Autobahn runner with auto-reconnect feature
GNU General Public License v2.0
19 stars 10 forks source link

Add autoPingInterval and autoPingTimeout #6

Closed ghost closed 8 years ago

ghost commented 8 years ago

This makes the connection more robust. Previously, a dropped connection would not be detected until the client attempts to send a message. For a "read-only" client that only listens to server messages, the dropped connection would never be detected.

With autoPingInterval and autoPingTimeout added, this is no longer an issue. I tested this change in a broadcaster-listener setup using iptables to artificially block packets.

See: http://nicolovaligi.com/automatic-reconnection-websockets-autobahn.html

isra17 commented 8 years ago

Nice catch, would you mind to rebase? It conflicts with your previous PR.

ghost commented 8 years ago

Sure thing, just a minute.

ghost commented 8 years ago

Done

isra17 commented 8 years ago

Cool, thanks for the cleanup!