fetchmail-friends
[Top] [All Lists]

Re: [fetchmail][PATCH][FIX] fetchmail 5.9.0/5.9.7 ssl-related hang

2002-02-11 00:59:17
Quoting from Matthias Andree's mail on Sun, Feb 10, 2002 at 02:39:17PM +0100:
   Eric, please consider the patch for 5.9.8, and if you apply it,
   please release another 5.9.x to get a wide test base before jumping
   to 5.10.0 or 6.0.0, as I fear build woes with older OpenSSL/SSLEAY
   versions.

This patch seems to be ok. Now, I am getting:

SSL_peek() = 0
SSL_get_error() = 5 (previous ERR_get_error() = 0)

...

Here is a patch (not related to the above patch) for idle timeout
during first poll:

======================================================================
diff -Naur fetchmail-5.9.7.orig/imap.c fetchmail-5.9.7/imap.c
--- fetchmail-5.9.7.orig/imap.c Fri Feb  1 07:48:06 2002
+++ fetchmail-5.9.7/imap.c      Mon Feb 11 12:52:13 2002
@@ -535,8 +535,14 @@
            report(stdout, GT_("%d messages waiting after first poll\n"), 
count);
 
        /* no messages?  then we may need to idle until we get some */
-       if (count == 0 && do_idle)
-           imap_idle(sock);
+       while (count == 0 && do_idle) {
+           ok = imap_idle(sock);
+           if (ok)
+           {
+               report(stderr, GT_("re-poll failed\n"));
+               return(ok);
+           }
+       }
 
        /*
         * We should have an expunge here to
======================================================================

Sunil Shetye.


<Prev in Thread] Current Thread [Next in Thread>