agl / xmpp-client

An XMPP client with OTR support
BSD 3-Clause "New" or "Revised" License
365 stars 71 forks source link

Add I/O timeouts. #116

Closed jsha closed 7 years ago

jsha commented 8 years ago

Currently, if a connection dies quietly, for instance because a laptop was suspended, xmpp-client won't notice, and will appear to still be connected.

This change adds one-minute pings and a three-minute timeout on the net.Conn. If the timeout is exceeded, xmpp-client will exit with an error, offering an opportunity to restart (either manually or automatically).