[pan2] Bug 545220: Infinite loop with server that doesn't support LIST NEWSGROUPS
- From: Charles Stephen Kerr <csk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pan2] Bug 545220: Infinite loop with server that doesn't support LIST NEWSGROUPS
- Date: Mon, 28 Sep 2009 19:43:34 +0000 (UTC)
commit f0151ad66bc83f18566a7471c08048c77b0b9cf0
Author: Charles Kerr <charles rebelbase com>
Date: Mon Sep 28 14:43:23 2009 -0500
Bug 545220: Infinite loop with server that doesn't support LIST NEWSGROUPS
pan/tasks/nntp.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pan/tasks/nntp.cc b/pan/tasks/nntp.cc
index 7b42a58..4f87a80 100644
--- a/pan/tasks/nntp.cc
+++ b/pan/tasks/nntp.cc
@@ -95,7 +95,7 @@ namespace
ERROR_CMD_NOT_UNDERSTOOD = 500,
ERROR_CMD_NOT_SUPPORTED = 501,
NO_PERMISSION = 502,
- ERROR_TIMEOUT = 503
+ FEATURE_NOT_SUPPORTED = 503
};
}
@@ -234,7 +234,8 @@ NNTP :: on_socket_response (Socket * sock UNUSED, const StringView& line_in)
case NO_GROUP_SELECTED:
case ERROR_CMD_NOT_UNDERSTOOD:
case ERROR_CMD_NOT_SUPPORTED:
- case NO_PERMISSION: {
+ case NO_PERMISSION:
+ case FEATURE_NOT_SUPPORTED: {
std::string cmd (_previous_command);
if (cmd.size()>=2 && cmd[cmd.size()-1]=='\n' && cmd[cmd.size()-2]=='\r')
cmd.resize (cmd.size()-2);
@@ -253,7 +254,6 @@ NNTP :: on_socket_response (Socket * sock UNUSED, const StringView& line_in)
state = CMD_FAIL;
break;
- case ERROR_TIMEOUT:
case TOO_MANY_CONNECTIONS:
state = CMD_RETRY;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]