I have a problem where my wget hangs on the connect call. found with an strace. Someone submitted a patch in 1999 for this problem so I was wondering if we can get the patch in the source?
here is the patch I made for the current release Not clean some unsed variables; but I was cutting and pasting. /src/connect.c 21c21 < #include <unistd.h> --- > 46,47c46 < #include <signal.h> < #include <sys/types.h> --- > 55,62c54 < int connect_alarmed; < int err = 0; < struct sigaction timeout_on_connect; < sigset_t masked_signals; < static void connect_alarm_occurred (int data) < { < connect_alarmed = 1; < } --- > 107,125d98 < sigfillset (&masked_signals); < timeout_on_connect.sa_handler = connect_alarm_occurred; < timeout_on_connect.sa_mask = masked_signals; < timeout_on_connect.sa_flags = SA_ONESHOT; < timeout_on_connect.sa_restorer = NULL; < < < < connect_alarmed = 0; < < if (sigaction (SIGALRM, &timeout_on_connect, NULL) == -1) < { < DEBUGP (("Couldn`t setup a SIGALRM handler, have to use the default")); < } < else < { < alarm (opt.timeout); < } < 133d105 < alarm(0); Thanks Rick Herbel PS This would have saved me some debug time :(