timeout


Description:

[ NoAccessorMethod ]
public uint timeout { get; set; }

The timeout (in seconds) for socket I/O operations (including connecting to a server, and waiting for a reply to an HTTP request).

Although you can change this property at any time, it will only affect newly-created connections, not currently-open ones. You can call abort after setting this if you want to ensure that all future connections will have this timeout value.

Note that the default value of 60 seconds only applies to plain Sessions. If you are using SessionAsync or SessionSync, the default value is 0 (meaning socket I/O will not time out).

Not to be confused with idle_timeout (which is the length of time that idle persistent connections will be kept open).