[evolution-patches] make the nntp provider handle (some) 205 responses as timeouts
- From: Alessandro Decina <alessandro nnva org>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] make the nntp provider handle (some) 205 responses as timeouts
- Date: Sat, 23 Apr 2005 18:36:09 +0200
Hello,
in NNTP the 205 status code is given in response to the QUIT command.
However some newsservers use it to notify a connection timeout to the
client.
This patch makes e-d-s handle the NNTP 205 status code as a timeout
code, when it is given in response to commands other than QUIT.
--
Alessandro Decina <alessandro nnva org>
--- evolution-data-server/camel/providers/nntp/ChangeLog 2005-04-22 12:46:23.000000000 +0200
+++ evolution-data-server-ale/camel/providers/nntp/ChangeLog 2005-04-23 18:05:25.000000000 +0200
@@ -1,3 +1,8 @@
+2005-04-23 Alessandro Decina <alessandro nnva org>
+
+ * camel-nntp-store.c (camel_nntp_command): handle unsolicited 205 return
+ codes as server timeouts.
+
2005-04-22 Not Zed <NotZed Ximian com>
* camel-nntp-store.c (nntp_store_get_folder_info_all): don't set
--- evolution-data-server/camel/providers/nntp/camel-nntp-store.c 2005-04-23 17:45:37.000000000 +0200
+++ evolution-data-server-ale/camel/providers/nntp/camel-nntp-store.c 2005-04-23 17:31:25.000000000 +0200
@@ -1385,6 +1385,8 @@
camel_exception_setv(ex, CAMEL_EXCEPTION_FOLDER_INVALID,
_("No such folder: %s"), line);
return -1;
+ case 205: /* service disconnected - since we send "quit" using
+ camel_nntp_raw_command, 205 here denotes a timeout */
case 400: /* service discontinued */
case 401: /* wrong client state - this should quit but this is what the old code did */
case 503: /* information not available - this should quit but this is what the old code did (?) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]