[evolution-data-server/evolution-data-server-3-12] [IMAPx] Try to reconnect after socket I/O timeout



commit 89d89f990e8705c7cb0b3534267026e8bfbd6b69
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 3 12:20:17 2014 +0100

    [IMAPx] Try to reconnect after socket I/O timeout

 camel/providers/imapx/camel-imapx-server.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 7241a9f..4bedc67 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -7696,7 +7696,8 @@ imapx_ready_to_read (GInputStream *input_stream,
                camel_imapx_debug (io, is->tagprefix, "Data read failed with error '%s'\n", 
local_error->message);
 
                /* Sadly, G_IO_ERROR_FAILED is also used for 'Connection reset by peer' error */
-               if (g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_FAILED)) {
+               if (g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_FAILED) ||
+                   g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_TIMED_OUT)) {
                        local_error->domain = CAMEL_IMAPX_SERVER_ERROR;
                        local_error->code = CAMEL_IMAPX_SERVER_ERROR_TRY_RECONNECT;
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]