From 3cd3c9124f09f7a4a44966695ee289adbfb8bc63 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Thu, 15 Aug 2002 20:08:59 +0000 Subject: [PATCH] Small temporary fix for newsserver connects --- ChangeLog | 5 +++++ lib/nntp.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 09945f5f..f9da5e10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,11 @@ v0.35.03 06-Jul-2002 Added protection against emty rfc headers with only a space. Added test for HA archiver. + mbinet.a: + If during a connect a newsserver refuses the connection then + don't close our side of the connection. This is a temporary + solution, we should disconnect with timeout instead. + lang: Corrected a spelling error in the Dutch language file. diff --git a/lib/nntp.c b/lib/nntp.c index 1e85329f..b5d38175 100644 --- a/lib/nntp.c +++ b/lib/nntp.c @@ -116,7 +116,8 @@ int nntp_connect(void) } } else if (strncmp(p, "200", 3)) { WriteError("NNTP: bad response: %s", p); - nntp_close(); +// nntp_close(); FIXME: Don't close, the other end might have done that already + // If we do also, this program hangs. Must be fixed! return -1; }