diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | fetchmail.c | 4 | ||||
-rw-r--r-- | fetchmail.man | 8 |
3 files changed, 11 insertions, 2 deletions
@@ -4,6 +4,7 @@ fetchmail-4.7.0 ()): * Minor correction to make i18n subdirectory builds work better. * Rob Funk's old-message-check optimization. * Fix an error in the logic for detecting when all connections are wedged. +* Unwedge connections on wakeup. fetchmail-4.6.9 (Tue Dec 1 14:46:19 EST 1998): * Better RFC822 conformance in fetchmail trace headers. diff --git a/fetchmail.c b/fetchmail.c index 0b62590e..a3a4190d 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -722,6 +722,10 @@ int main (int argc, char **argv) #else error(0, 0, _("awakened by signal %d"), lastsig); #endif + /* received a wakeup - unwedge all servers in case */ + /* the problem has been manually repaired */ + for (ctl = querylist; ctl; ctl = ctl->next) + ctl->wedged = FALSE; } } diff --git a/fetchmail.man b/fetchmail.man index 18875817..92218dc3 100644 --- a/fetchmail.man +++ b/fetchmail.man @@ -224,7 +224,9 @@ or respond to commands for the given number of seconds, \fIfetchmail\fR might hang up indefinitely trying to fetch mail from a down host. This would be particularly annoying for a \fIfetchmail\fR running in background. There is a default timeout which fetchmail -V -will report. +will report. If a given connection receives too many timeouts in +succession, fetchmail will consider it wedged and stop retrying, +the calkling user will be notified by email if this happens. .TP .B \--plugin (Keyword: plugin) @@ -670,7 +672,9 @@ makes a per-user lockfile to guarantee this. Normally, calling fetchmail with a daemon in the background sends a wakeup signal to the daemon, forcing it to poll mailservers immediately. (The wakeup signal is SIGHUP if fetchmail is running as -root, SIGUSR1 otherwise.) +root, SIGUSR1 otherwise.) The wakeup action also clears any `wedged' +flags indicating that connections have wedged due to failed +authentication or multiple timeouts. .PP The option .B --quit |