Shutdown if stream end times out
A dead TCP connection (VPN switch, changed network, a resumed session whose socket is gone) never answers. Ensure we close our side of the stream after a grace period in this case.
Fixes: gajim#12500 (closed)
Edited by mesonium