Bill Moseley <[EMAIL PROTECTED]> writes:
> Can someone explain how the timeout works with LWP. I'm mostly interested
> in http and ftp requests. Also if the timeout works the same of different
> platforms (and I'm most interested in VMS, unix, and Windows).
The timeout setting is used for two things in http requests:
1) It is passed in as Timeout argument to IO::Socket::INET's
constructor. IO::Socket::INET currently only use this to
fail the connect(2) call if it takes too long. The DNS
lookup of the hostname is done by IO::Socket::INET before
it even considers the timeout.
2) As data is written to the server and read from the server
the timeout is used to limit the time that we allow for
read/write to return. This makes it like a timeout on
activity on the wire.
For ftp request the timeout is only passed as the Timeout argument to
Net::FTP. What it does with it, I don't know.
Regards,
Gisle