On 21 Feb 2002 at 1:31, Alan Eldridge wrote:

> You can't get it to work for timing out a socket connection, because
> that is a bit of code that hasn't been implemented yet.
> 
> If no one else wants to, I can work up a patch for this next week.
> It's pretty standard coding, right out of Stevens. ;)

Before you do that, have look at this thread from December:

Subject: Patch for wget hanging on connect() call
<http://www.mail-archive.com/[email protected]/msg02342.html>
 <http://www.mail-archive.com/[email protected]/msg02345.html>
  <http://www.mail-archive.com/[email protected]/msg02353.html>
   <http://www.mail-archive.com/[email protected]/msg02354.html>
    <http://www.mail-archive.com/[email protected]/msg02355.html>
     <http://www.mail-archive.com/[email protected]/msg02358.html>
    <http://www.mail-archive.com/[email protected]/msg02356.html>

The main problem seems to be the (non-)portability of FIONBIO on
older systems that Wget is supposed to work on, but the above
messages go into it (and possible work-arounds) in more detail. It
might be better to use alarm() and a signal handler as Daniel
Stenberg suggested in one of the above messages.

Reply via email to