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
    That would be perfect, but I don't see how to properly implement that. I found how HTTP::Lite makes the socket, but I haven't found anyway of using setsockopt() to set a timeout value. Any direction as to where to look to do this?