diff options
author | djm <djm> | 2002-02-05 00:52:13 +0000 |
---|---|---|
committer | djm <djm> | 2002-02-05 00:52:13 +0000 |
commit | b439c28989c6845e26a8db5389396a98ad4c7ded (patch) | |
tree | c936c4091eac8897f499c6fa8f18148046d35dba /packet.c | |
parent | c187fa607bd760e5a646d452bf5b6fa79cced098 (diff) | |
download | openssh-b439c28989c6845e26a8db5389396a98ad4c7ded.tar.gz |
- (djm) OpenBSD CVS Sync
- stevesk@cvs.openbsd.org 2002/01/24 21:09:25
[channels.c misc.c misc.h packet.c]
add set_nodelay() to set TCP_NODELAY on a socket (prep for nagle tuning).
no nagle changes just yet; ok djm@ markus@
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -37,7 +37,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: packet.c,v 1.85 2002/01/18 18:14:17 stevesk Exp $"); +RCSID("$OpenBSD: packet.c,v 1.86 2002/01/24 21:09:25 stevesk Exp $"); #include "xmalloc.h" #include "buffer.h" @@ -1191,7 +1191,6 @@ packet_set_interactive(int interactive) int lowdelay = IPTOS_LOWDELAY; int throughput = IPTOS_THROUGHPUT; #endif - int on = 1; if (called) return; @@ -1219,9 +1218,7 @@ packet_set_interactive(int interactive) strerror(errno)); } #endif - if (setsockopt(connection_in, IPPROTO_TCP, TCP_NODELAY, (void *) &on, - sizeof(on)) < 0) - error("setsockopt TCP_NODELAY: %.100s", strerror(errno)); + set_nodelay(connection_in); } else if (packet_connection_is_ipv4()) { /* * Set IP options for a non-interactive connection. Use |