Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: proxyChapter 17
The LWP Library
Next: Reference: use_alarm
 

timeout

 $ua->timeout([secs])

When invoked with no arguments, timeout returns the timeout value of a request. By default, this value is three minutes. Therefore, if the client software doesn't hear back from the server within three minutes, it will stop the transaction and indicate that a timeout occurred in the HTTP response code. If invoked with an argument, the timeout value is redefined to be that value.


Previous: Reference: proxyPerl in a NutshellNext: Reference: use_alarm
Reference: proxyBook IndexReference: use_alarm