- /* For protocol 31: setting an I/O timeout ensures that if something
- * inexplicably weird happens, we won't hang around forever. For older
- * protocols: we can't tell the other side to die, so we linger a brief
- * time (to try to give our error messages time to arrive) and then let
- * the "unexpectedly" closed socket tell them to die. */
- set_io_timeout(protocol_version >= 31 ? 30 : 1);
+ /* Setting an I/O timeout ensures that if something inexplicably weird
+ * happens, we won't hang around forever. */
+ if (!io_timeout)
+ set_io_timeout(60);