diff options
author | Igor Slepchin <[email protected]> | 2018-09-24 22:44:03 -0400 |
---|---|---|
committer | Igor Slepchin <[email protected]> | 2018-10-11 01:07:19 -0400 |
commit | 210665e8a252faecf28ccebade999e734ab92582 (patch) | |
tree | 8b81350cb43fd9a59ea13e34e03017f82fccbef3 /lib/kernel/src | |
parent | 3daef1a4ee8cfce90d0220be3695809ccbb8ea58 (diff) | |
download | otp-210665e8a252faecf28ccebade999e734ab92582.tar.gz otp-210665e8a252faecf28ccebade999e734ab92582.tar.bz2 otp-210665e8a252faecf28ccebade999e734ab92582.zip |
Add nopush TCP socket option
This translates to TCP_CORK on Linux and TCP_NOPUSH on
BSD.
In effect, this acts as super-Nagle: no partial TCP segments
are sent out until this option is turned off. Once turned off,
all accumulated unsent data is sent out immediately. The latter
is *not* the case on OSX, hence the implementation ignores
"nopush" on OSX to reduce confusion.
Diffstat (limited to 'lib/kernel/src')
-rw-r--r-- | lib/kernel/src/inet_int.hrl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/kernel/src/inet_int.hrl b/lib/kernel/src/inet_int.hrl index c8e09d18ad..f6525d7261 100644 --- a/lib/kernel/src/inet_int.hrl +++ b/lib/kernel/src/inet_int.hrl @@ -162,6 +162,7 @@ -define(INET_OPT_PKTOPTIONS, 45). -define(INET_OPT_TTL, 46). -define(INET_OPT_RECVTTL, 47). +-define(TCP_OPT_NOPUSH, 48). % Specific SCTP options: separate range: -define(SCTP_OPT_RTOINFO, 100). -define(SCTP_OPT_ASSOCINFO, 101). |