summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-15 12:05:22 +1100
committerDamien Miller <djm@mindrot.org>2006-03-15 12:05:22 +1100
commit314dd4b2f33c22330f3f4272b1605fb0d8fbc58b (patch)
tree821bb43145d5df6847b75b5b6e0a3cefdad2df5d
parentb24c2f8e33781be43702d8cfc69d4fbd0547e638 (diff)
- dtucker@cvs.openbsd.org 2006/03/13 08:33:00
[packet.c] Set TCP_NODELAY for all connections not just "interactive" ones. Fixes poor performance and protocol stalls under some network conditions (mindrot bugs #556 and #981). Patch originally from markus@, ok djm@
-rw-r--r--ChangeLog7
-rw-r--r--packet.c5
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2be6f21d6..7cc666a58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -210,6 +210,11 @@
210 [sshd.c] 210 [sshd.c]
211 don't log that we are listening on a socket before the listen() call 211 don't log that we are listening on a socket before the listen() call
212 actually succeeds, bz #1162 reported by Senthil Kumar; ok dtucker@ 212 actually succeeds, bz #1162 reported by Senthil Kumar; ok dtucker@
213 - dtucker@cvs.openbsd.org 2006/03/13 08:33:00
214 [packet.c]
215 Set TCP_NODELAY for all connections not just "interactive" ones. Fixes
216 poor performance and protocol stalls under some network conditions (mindrot
217 bugs #556 and #981). Patch originally from markus@, ok djm@
213 218
21420060313 21920060313
215 - (dtucker) [configure.ac] Bug #1171: Don't use printf("%lld", longlong) 220 - (dtucker) [configure.ac] Bug #1171: Don't use printf("%lld", longlong)
@@ -4111,4 +4116,4 @@
4111 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4116 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4112 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4117 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4113 4118
4114$Id: ChangeLog,v 1.4200 2006/03/15 01:04:36 djm Exp $ 4119$Id: ChangeLog,v 1.4201 2006/03/15 01:05:22 djm Exp $
diff --git a/packet.c b/packet.c
index 24d2bb312..ca6861e55 100644
--- a/packet.c
+++ b/packet.c
@@ -37,7 +37,7 @@
37 */ 37 */
38 38
39#include "includes.h" 39#include "includes.h"
40RCSID("$OpenBSD: packet.c,v 1.121 2006/02/08 14:38:18 stevesk Exp $"); 40RCSID("$OpenBSD: packet.c,v 1.122 2006/03/13 08:33:00 dtucker Exp $");
41 41
42#include "openbsd-compat/sys-queue.h" 42#include "openbsd-compat/sys-queue.h"
43#include <netinet/in_systm.h> 43#include <netinet/in_systm.h>
@@ -1482,8 +1482,7 @@ packet_set_interactive(int interactive)
1482 /* Only set socket options if using a socket. */ 1482 /* Only set socket options if using a socket. */
1483 if (!packet_connection_is_on_socket()) 1483 if (!packet_connection_is_on_socket())
1484 return; 1484 return;
1485 if (interactive) 1485 set_nodelay(connection_in);
1486 set_nodelay(connection_in);
1487 packet_set_tos(interactive); 1486 packet_set_tos(interactive);
1488} 1487}
1489 1488