Date: Sat, 29 Dec 2001 17:41:33 +0000 From: Josef Karthauser <joe@tao.org.uk> To: Tomas Svensson <tsn@gbdev.net> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD performing worse than Linux? Message-ID: <20011229174133.A98245@tao.org.uk> In-Reply-To: <20011228192736.A22545@simba.systemteknik.net>; from tsn@gbdev.net on Fri, Dec 28, 2001 at 07:27:36PM %2B0100 References: <20011228192736.A22545@simba.systemteknik.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Fri, Dec 28, 2001 at 07:27:36PM +0100, Tomas Svensson wrote:
> This just verifies what I said weeks ago.
>
> On the client side:
>
> ## several packets are lost here due to congestion, thanks to
> TCP_NODELAY:
No. These packets aren't lost to congestion. I can reproduce this
pattern every time. There's no random packet loseness about it.
You are right that switching TCP_NODELAY off does fix it, but it's not
caused by congestion I can assure you.
Joe
Index: packet.c
===================================================================
RCS file: /home/ncvs/src/crypto/openssh/packet.c,v
retrieving revision 1.1.1.1.2.4
diff -u -r1.1.1.1.2.4 packet.c
--- packet.c 28 Sep 2001 01:33:34 -0000 1.1.1.1.2.4
+++ packet.c 29 Dec 2001 17:33:40 -0000
@@ -1281,9 +1281,11 @@
error("setsockopt IPTOS_LOWDELAY: %.100s",
strerror(errno));
}
+#if NEVER
if (setsockopt(connection_in, IPPROTO_TCP, TCP_NODELAY, (void *) &on,
sizeof(on)) < 0)
error("setsockopt TCP_NODELAY: %.100s", strerror(errno));
+#endif
} else if (packet_connection_is_ipv4()) {
/*
* Set IP options for a non-interactive connection. Use
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjwuAE0ACgkQXVIcjOaxUBZYwwCgl2F4wZjV3QXd9tFN4hbcwXZd
AJkAnip3NHv+ulKl4/OPX2wYNvGkafPf
=4AfR
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011229174133.A98245>
