diff options
author | Micael Karlberg <[email protected]> | 2019-07-10 12:45:43 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-07-17 12:12:38 +0200 |
commit | b76907abc160fdbb192e81f0a8dadde9455db9ea (patch) | |
tree | 007c9ceb30aa2281f4ff16ba767b3040999bb005 /erts/preloaded | |
parent | fa1684afd7a2fca598e6d5d366df3fc18a8953a1 (diff) | |
download | otp-b76907abc160fdbb192e81f0a8dadde9455db9ea.tar.gz otp-b76907abc160fdbb192e81f0a8dadde9455db9ea.tar.bz2 otp-b76907abc160fdbb192e81f0a8dadde9455db9ea.zip |
[esock] Add test case for socket option acceptconn
Add test case for the socket option acceptconn. Also make
minor correction (error when trying to set this option
was incorrect). Doc was also incorrect (spelled wrong).
OTP-15904
Diffstat (limited to 'erts/preloaded')
-rw-r--r-- | erts/preloaded/ebin/socket.beam | bin | 76320 -> 76408 bytes | |||
-rw-r--r-- | erts/preloaded/src/socket.erl | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/erts/preloaded/ebin/socket.beam b/erts/preloaded/ebin/socket.beam Binary files differindex 648519149f..7f7ba46e04 100644 --- a/erts/preloaded/ebin/socket.beam +++ b/erts/preloaded/ebin/socket.beam diff --git a/erts/preloaded/src/socket.erl b/erts/preloaded/src/socket.erl index 910c8be294..b80ef13e1e 100644 --- a/erts/preloaded/src/socket.erl +++ b/erts/preloaded/src/socket.erl @@ -3377,6 +3377,8 @@ enc_sockopt_key(otp = L, Opt, _, _, _, _) -> %% +++ SOCKET socket options +++ enc_sockopt_key(socket = _L, acceptconn = _Opt, get = _Dir, _D, _T, _P) -> ?SOCKET_OPT_SOCK_ACCEPTCONN; +enc_sockopt_key(socket = L, acceptconn = Opt, Dir, _D, _T, _P) -> + not_supported({L, Opt, Dir}); enc_sockopt_key(socket = L, acceptfilter = Opt, _Dir, _D, _T, _P) -> not_supported({L, Opt}); %% Before linux 3.8, this socket option could be set. |