Doing a bit more testing it seems that a timeout of 2 was too low, resulting in frequent connection "drops" just because the server was a little slow to respond.
Increased the timeout to a more conservative value, and made it user configurable via the extra dict. A value of None for either option turns off automatic pings.
Doing a bit more testing it seems that a timeout of 2 was too low, resulting in frequent connection "drops" just because the server was a little slow to respond.
Increased the timeout to a more conservative value, and made it user configurable via the
extra
dict. A value ofNone
for either option turns off automatic pings.