net: Set network timeouts to reasonable levels
When doing network operations, the library should have a reasonable default timeout, and maybe the ability to change it.
If there is no timeout, the client may hang forever waiting on a socket, which might not be what the end-user expects.
Timeout should probably be capped at a "sane" level (600 seconds is used in the old modio-newkeys
) and may need to be bounded in the case of exponential backoff to make such a timeout happen regularly.
- Not having a timeout is a bug.
- User adjustible timeout is a feature