[leafnode-list] PATCH: leafnode is silent, what is happenig?

Matthias Andree matthias.andree at gmx.de
Sat Jul 30 01:20:30 CEST 2005


> Werner Partner schrieb am 2005-07-29:
>
>> >>news.t-online.de: connecting to port nntp
>> >> trying:    address 62.153.159.134 port 119...
>> >> connected: address 62.153.159.134 port 119.
>> >>secnews.netscape.com: connecting to port nntp
>> >> trying:    address 204.29.187.156 port 119...
>> >> connected: address 204.29.187.156 port 119.

This patch fixes the problem, to be applied on top of the current
leafnode-2 alpha release:

Fri Jul 29 23:16:40 UTC 2005  Matthias Andree <matthias.andree at gmx.de>
  * Propagate error greeting banners from servers to the user.
--- old-leafnode-2/nntputil.c	2005-07-29 23:19:54.000000000 +0000
+++ new-leafnode-2/nntputil.c	2005-07-29 23:14:21.000000000 +0000
@@ -413,6 +413,15 @@
 	ln_log(LNLOG_SINFO, LNLOG_CSERVER,
 	       "%s: connected (%d), banner: \"%s\"",
 	       upstream->name, reply, line ? line : "(none)");
+    } else {
+	ln_log(LNLOG_SERR, LNLOG_CSERVER,
+		"%s: Server didn't want to talk to us, reply code %d",
+		upstream->name, reply);
+	if (line)
+	    ln_log(LNLOG_SERR, LNLOG_CSERVER,
+		    "%s: \"%s\"", upstream->name, line);
+	nntpdisconnect();
+	return 0;
     }
 
     if (line && strstr(line, "NewsCache")) {

-- 
Matthias Andree



More information about the leafnode-list mailing list