Send inn-workers mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."
Today's Topics:
1. nnrpd and TCP nagle (christian mock)
----------------------------------------------------------------------
Message: 1
Date: Wed, 23 Mar 2016 08:52:56 +0100
From: christian mock <[email protected]>
To: [email protected]
Subject: nnrpd and TCP nagle
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Dear workers,
I've been debugging a slow reader issue with a friend and we've found
that when his tin does a "listgroup", each and every article number is
going over the wire in its own packet. That, of course, is pretty
inefficient.
I've found the following in nnrpd.c (line 614):
/* Setting TCP_NODELAY to nnrpd fixes a problem of slow downloading
* of overviews and slow answers on some architectures (like BSD/OS). */
setsockopt(STDIN_FILENO, IPPROTO_TCP, TCP_NODELAY, &nodelay,
sizeof(nodelay));
Which, when removed, makes for way better performance, about an order
of magnitude down in number of packets and time for the group we've
been testing with.
The last time I ran INN on BSD/OS was 20 years ago, and BSD/OS has
been discontinued in 2003, which indicates this line is somewhat
historic. And for NNTP TCP_NODELAY makes no sense in the first place.
So I suggest removing this.
cm.
--
** christian mock in vienna, austria -- http://www.tahina.priv.at/
What other OS provides not one but two INTERCAL compilers as part of
the standard distribution?
Mark Brown about Debian
------------------------------
_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers
End of inn-workers Digest, Vol 82, Issue 3
******************************************