Article View: news.software.nntp
Article #80391Re: [INN] transfer server: design issues
From: Julien ÉLIE
Date: Sun, 15 Mar 2009 21:24
Date: Sun, 15 Mar 2009 21:24
47 lines
2644 bytes
2644 bytes
Hi The Doctor,
> 2) Some slow posting responses
I may suggest a patch from David Canzi for nnrpd/nnrpd.c:
Index: nnrpd.c
===================================================================
--- nnrpd.c (révision 8382)
+++ nnrpd.c (copie de travail)
@@ -14,6 +14,7 @@
#include "portable/wait.h"
#include <netdb.h>
#include <signal.h>
+#include <netinet/tcp.h>
#if HAVE_GETSPNAM
# include <shadow.h>
@@ -535,6 +536,7 @@
struct sockaddr *sas = (struct sockaddr *) &sss;
socklen_t length;
size_t size;
+ int nodelay = 1;
memset(&Client, 0, sizeof(Client));
strlcpy(Client.host, "?", sizeof(Client.host));
@@ -603,6 +605,8 @@
Client.serverport = network_sockaddr_port(sas);
}
+ setsockopt(STDIN_FILENO, SOL_TCP, TCP_NODELAY, &nodelay, sizeof(nodelay));
+
notice("%s (%s) connect", Client.host, Client.ip);
PERMgetaccess(NNRPACCESS);
Does it improve something on your server?
Maybe not, but better be sure.
(On my Debian news server, I do not see any difference.)
--
Julien ÉLIE
« Il n'y a que le premier pas qui coûte. » (Mme du Deffand)
Technical Details
Message-ID:
<gpjrp4$s8p$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<go4f5l$10e8$1@de-l.enfer-du-nord.net> <gp1g0f$3l6$1@gallifrey.nk.ca> <gp1h5f$evc$1@news.trigofacile.com> <gp26ng$49s$33@gallifrey.nk.ca> <gp3i65$5am$1@gallifrey.nk.ca>Show Full Headers
Complete Article Headers
Message-ID: <gpjrp4$s8p$1@news.trigofacile.com> Subject: Re: [INN] transfer server: design issues Date: Sun, 15 Mar 2009 22:24:42 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <go4f5l$10e8$1@de-l.enfer-du-nord.net> <gp1g0f$3l6$1@gallifrey.nk.ca> <gp1h5f$evc$1@news.trigofacile.com> <gp26ng$49s$33@gallifrey.nk.ca> <gp3i65$5am$1@gallifrey.nk.ca> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 47 NNTP-Posting-Host: aaubervilliers-151-1-58-123.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1237152356 28953 83.112.31.123 (15 Mar 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sun, 15 Mar 2009 21:25:56 +0000 (UTC) In-Reply-To: <gp3i65$5am$1@gallifrey.nk.ca> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 X-Original-Bytes: 2402