Re: timeout
"Octavian Rasnita" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <004b01c8af39$e5daaf50$9200a8c0@octavian> |
From: "Gisle Aas" <[email protected]> > The $ua->timeout() will abort a connection attempt that takes more > than the given number of seconds, but before LWP start the connect > call, it looks up the hostname which can take time that's not limited > by LWP. After the connection has been established, the timeout value > is used to terminate requests on sockets with no activity (data coming > back) for the given amount of time. But as long as some data comes in > at least every timeout sec LWP will keep on processing the requests. Thank you Gisle. Do you know if I can detect if there is no network connection or if the requested domain was not found, using other methods before trying to make the request using LWP? Thank you. Octavian