[evolution-data-server] [IMAPx] Try to reconnect after socket I/O timeout
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [IMAPx] Try to reconnect after socket I/O timeout
- Date: Mon, 3 Nov 2014 11:20:47 +0000 (UTC)
commit 76edab5e329cba98affcc310e2086006fb1b5192
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 d92ddeb..03c0ec6 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -7675,7 +7675,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]