Small temporary fix for newsserver connects

This commit is contained in:
Michiel Broek 2002-08-15 20:08:59 +00:00
parent f07f9f6a92
commit 3cd3c9124f
2 changed files with 7 additions and 1 deletions

View File

@ -16,6 +16,11 @@ v0.35.03 06-Jul-2002
Added protection against emty rfc headers with only a space. Added protection against emty rfc headers with only a space.
Added test for HA archiver. 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: lang:
Corrected a spelling error in the Dutch language file. Corrected a spelling error in the Dutch language file.

View File

@ -116,7 +116,8 @@ int nntp_connect(void)
} }
} else if (strncmp(p, "200", 3)) { } else if (strncmp(p, "200", 3)) {
WriteError("NNTP: bad response: %s", p); 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; return -1;
} }