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.
In reply to Re: Making Timeout for Yourself
by pg
in thread Making Timeout for Yourself
by mcogan1966
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |