Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Net.setTimeoutSecs

Net.setTimeoutSecs($timeoutSecs) -> bool

Description

Set the number of seconds when the request should be aborted if there is no response since the last bytes were received.

The timeout applies per line of content read, not for the overall request.

If the value is set to -1 (the default), there is no timeout.

Net.setTimeoutSecs(10)