aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-07-10 12:45:43 +0200
committerMicael Karlberg <[email protected]>2019-07-17 12:12:38 +0200
commitb76907abc160fdbb192e81f0a8dadde9455db9ea (patch)
tree007c9ceb30aa2281f4ff16ba767b3040999bb005 /erts/preloaded/src
parentfa1684afd7a2fca598e6d5d366df3fc18a8953a1 (diff)
downloadotp-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/src')
-rw-r--r--erts/preloaded/src/socket.erl2
1 files changed, 2 insertions, 0 deletions
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.