Session.timeout

uint timeout() @property

Get timeout property.

Returns

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 soup.session.Session.abort after setting this if you want to ensure that all future connections will have this timeout value.

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

void timeout(uint propval) @property

Set timeout property.

Parameters

propvalThe 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 soup.session.Session.abort after setting this if you want to ensure that all future connections will have this timeout value. Not to be confused with soup.session.Session.idleTimeout (which is the length of time that idle persistent connections will be kept open).