Method Protocols.HTTP.Promise.set_timeout()


Method set_timeout
Method set_maxtime

void set_timeout(int t)
void set_maxtime(int t)

Description

set_timeout() sets the default timeout for connecting and data fetching. The watchdog will be reset each time data is fetched.

set_maxtime() sets the timeout for the entire operation. If this is set to 30 seconds for instance, the request will be aborted after 30 seconds event if data is still being received. By default this is indefinitely.

t is the timeout in seconds.

See also

Arguments