commit | d51419bf4397cf13d0c50bf84c125477c6bed307 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Mon Feb 09 19:33:05 2004 +0000 |
committer | rsc <devnull@localhost> | Mon Feb 09 19:33:05 2004 +0000 |
tree | d9a10c72e5b710e7a9f85e632c8b893ecd43dd0a | |
parent | c1973705501d05e906bd14a0dc25cc4472b5871f [diff] [blame] |
various tweaks.
diff --git a/src/lib9/dial.c b/src/lib9/dial.c index fa19cce..99d3799 100644 --- a/src/lib9/dial.c +++ b/src/lib9/dial.c
@@ -12,6 +12,7 @@ #include <sys/socket.h> #include <netinet/in.h> +#include <netinet/tcp.h> #include <sys/un.h> #include <netdb.h> @@ -68,6 +69,10 @@ close(s); return -1; } + if(proto == SOCK_STREAM){ + int one = 1; + setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char*)&one, sizeof one); + } return s; Unix: