in reply to Making Timeout for Yourself
LWP's timeout is nothing more than passing the timeout parameter to the socket it holding.
The best solution here is to do the same thing as LWP does. A quick study of the source code shows that, HTTP::Lite uses raw socket instead of IO::Socket class, so just use setsockopt() call to set various timeouts.
socket can handle timeout very nicely for you, so don't do it yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Making Timeout for Yourself
by mcogan1966 (Monk) on Jan 05, 2004 at 13:14 UTC |