diff options
author | Micael Karlberg <[email protected]> | 2019-05-14 15:42:21 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-05-29 13:47:40 +0200 |
commit | 81a00a1174a73e42ee34ef63812be2392b3bc53e (patch) | |
tree | a9121096be30181bfa1a09975d665dcd69d5374c /erts/preloaded | |
parent | d68540b85cad7c42434f861c2cf624380c392d85 (diff) | |
download | otp-81a00a1174a73e42ee34ef63812be2392b3bc53e.tar.gz otp-81a00a1174a73e42ee34ef63812be2392b3bc53e.tar.bz2 otp-81a00a1174a73e42ee34ef63812be2392b3bc53e.zip |
[esock|test] Add plain send/recv small ping-pong test case for local
Add a (plain) send and recv small ping-pong test case for
Unix Domain (stream) socket.
Also fixed minor bug in setopt for level 'otp' and option
rcvbuf. Could not be changed if unix domain (stream) socket (local).
OTP-15822
Diffstat (limited to 'erts/preloaded')
-rw-r--r-- | erts/preloaded/ebin/socket.beam | bin | 70640 -> 70628 bytes | |||
-rw-r--r-- | erts/preloaded/src/socket.erl | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/erts/preloaded/ebin/socket.beam b/erts/preloaded/ebin/socket.beam Binary files differindex 6aa043972c..198dd08036 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 cdbc79204e..9fc73a11de 100644 --- a/erts/preloaded/src/socket.erl +++ b/erts/preloaded/src/socket.erl @@ -2537,7 +2537,7 @@ enc_setopt_value(otp, rcvbuf, V, _, _, _) when is_integer(V) andalso (V > 0) -> V; %% N: Number of reads (when specifying length = 0) %% V: Size of the "read" buffer -enc_setopt_value(otp, rcvbuf, {N, BufSz} = V, _, stream = _T, tcp = _P) +enc_setopt_value(otp, rcvbuf, {N, BufSz} = V, _, stream = _T, _P) when (is_integer(N) andalso (N > 0)) andalso (is_integer(BufSz) andalso (BufSz > 0)) -> V; |