summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authordjm <djm>2006-03-15 01:05:22 +0000
committerdjm <djm>2006-03-15 01:05:22 +0000
commiteea82bb55dbd66bb4fca5b71732753b2a5d8b0a4 (patch)
tree192f5aeb8e0bea837ca5f7b66fd8e515d10ea668 /packet.c
parentb904c1e6604adc434f6df0976e8d11d4aedaf141 (diff)
downloadopenssh-eea82bb55dbd66bb4fca5b71732753b2a5d8b0a4.tar.gz
- 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@
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/packet.c b/packet.c
index 24d2bb31..ca6861e5 100644
--- a/packet.c
+++ b/packet.c
@@ -37,7 +37,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: packet.c,v 1.121 2006/02/08 14:38:18 stevesk Exp $");
+RCSID("$OpenBSD: packet.c,v 1.122 2006/03/13 08:33:00 dtucker Exp $");
#include "openbsd-compat/sys-queue.h"
#include <netinet/in_systm.h>
@@ -1482,8 +1482,7 @@ packet_set_interactive(int interactive)
/* Only set socket options if using a socket. */
if (!packet_connection_is_on_socket())
return;
- if (interactive)
- set_nodelay(connection_in);
+ set_nodelay(connection_in);
packet_set_tos(interactive);
}