diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-09 04:17:11 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-09 04:17:11 +0000 |
commit | 15016aa024854ca56ef20d1f29f54f9698a1911b (patch) | |
tree | c0962894ed0d01f43db83644055bc2dfd6c15552 /source/include/local.h | |
parent | e14ca7765ace1b721dad8eca4a527a4e4a8f1ab8 (diff) | |
download | samba-15016aa024854ca56ef20d1f29f54f9698a1911b.tar.gz samba-15016aa024854ca56ef20d1f29f54f9698a1911b.tar.xz samba-15016aa024854ca56ef20d1f29f54f9698a1911b.zip |
I talked to Dave Miller and he thinks that we should have TCP_NODELAY
on by default on OSes that support it, given the network IO pattern
that Samba uses. He doesn't think it will cause problems.
Diffstat (limited to 'source/include/local.h')
-rw-r--r-- | source/include/local.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/include/local.h b/source/include/local.h index 85e61c63c4e..c609f65342f 100644 --- a/source/include/local.h +++ b/source/include/local.h @@ -173,6 +173,14 @@ #define LONG_CONNECT_TIMEOUT 30 #define SHORT_CONNECT_TIMEOUT 5 +/* default socket options. Dave Miller thinks we should default to TCP_NODELAY + given the socket IO pattern that Samba uses*/ +#ifdef TCP_NODELAY +#define DEFAULT_SOCKET_OPTIONS "TCP_NODELAY" +#else +#define DEFAULT_SOCKET_OPTIONS "" +#endif + /* the default netbios keepalive timeout */ #define DEFAULT_KEEPALIVE 300 |