summaryrefslogtreecommitdiff
path: root/packet.c
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 /packet.c
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@
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 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