diff options
author | Micael Karlberg <[email protected]> | 2018-11-06 15:22:09 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-11-06 15:22:09 +0100 |
commit | e3e607ac76dc308da3ac24364477d48da0dc23bd (patch) | |
tree | 1875dfac505842f33ef491d68ebe95a84b45ae85 /erts/preloaded | |
parent | c6e94046261a608ee536c18cf631e33191e71bb1 (diff) | |
download | otp-e3e607ac76dc308da3ac24364477d48da0dc23bd.tar.gz otp-e3e607ac76dc308da3ac24364477d48da0dc23bd.tar.bz2 otp-e3e607ac76dc308da3ac24364477d48da0dc23bd.zip |
[socket-nif|test] Add UDP ping-pong test cases
Added ping-pong test cases for UDP, small and medium, using
the sendto/recvfrom and sendmsg/recvmsg functions.
OTP-14831
Diffstat (limited to 'erts/preloaded')
-rw-r--r-- | erts/preloaded/ebin/socket.beam | bin | 69380 -> 69392 bytes | |||
-rw-r--r-- | erts/preloaded/src/socket.erl | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/erts/preloaded/ebin/socket.beam b/erts/preloaded/ebin/socket.beam Binary files differindex d3bc7c7af0..25046e6aad 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 dd10aac3ff..a40692881b 100644 --- a/erts/preloaded/src/socket.erl +++ b/erts/preloaded/src/socket.erl @@ -1958,6 +1958,7 @@ do_recvfrom(SockRef, BufSz, EFlags, Timeout) -> next_timeout(TS, Timeout)); {nif_abort, RecvRef, Reason} -> + %% p("received nif-abort: ~p", [Reason]), {error, Reason} after NewTimeout -> @@ -1970,6 +1971,13 @@ do_recvfrom(SockRef, BufSz, EFlags, Timeout) -> end. +%% pi(Item) -> +%% pi(self(), Item). + +%% pi(Pid, Item) -> +%% {Item, Info} = process_info(Pid, Item), +%% Info. + %% --------------------------------------------------------------------------- %% |