aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-05-14 15:42:21 +0200
committerMicael Karlberg <[email protected]>2019-05-29 13:47:40 +0200
commit81a00a1174a73e42ee34ef63812be2392b3bc53e (patch)
treea9121096be30181bfa1a09975d665dcd69d5374c /erts/preloaded
parentd68540b85cad7c42434f861c2cf624380c392d85 (diff)
downloadotp-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.beambin70640 -> 70628 bytes
-rw-r--r--erts/preloaded/src/socket.erl2
2 files changed, 1 insertions, 1 deletions
diff --git a/erts/preloaded/ebin/socket.beam b/erts/preloaded/ebin/socket.beam
index 6aa043972c..198dd08036 100644
--- a/erts/preloaded/ebin/socket.beam
+++ b/erts/preloaded/ebin/socket.beam
Binary files differ
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;