aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/socket_test_ttest_tcp_server.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-12-18 17:55:32 +0100
committerMicael Karlberg <[email protected]>2018-12-19 17:19:37 +0100
commit453f5b597d42147321f6973b28d7b921fa628852 (patch)
treef540ef4a5e142e7e2b85598cf1604a909fb06d0a /erts/emulator/test/socket_test_ttest_tcp_server.erl
parent04e458b0caa911a9988174ea3a359351f56cc4a5 (diff)
downloadotp-453f5b597d42147321f6973b28d7b921fa628852.tar.gz
otp-453f5b597d42147321f6973b28d7b921fa628852.tar.bz2
otp-453f5b597d42147321f6973b28d7b921fa628852.zip
[socket-nif|test] Add more ttest (gen_tcp and socket) test cases
Added a number of ttest test cases with transport gen_tcp and socket. Server with transport = gen_tcp, active = once and client using transport = socket(tcp) (and active = false, once and true). Also fixed a counting error in the server (forgot to include the header, 16 bytes, in the byte count). OTP-14831
Diffstat (limited to 'erts/emulator/test/socket_test_ttest_tcp_server.erl')
-rw-r--r--erts/emulator/test/socket_test_ttest_tcp_server.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/test/socket_test_ttest_tcp_server.erl b/erts/emulator/test/socket_test_ttest_tcp_server.erl
index 7506e7f932..e8d626e3d8 100644
--- a/erts/emulator/test/socket_test_ttest_tcp_server.erl
+++ b/erts/emulator/test/socket_test_ttest_tcp_server.erl
@@ -428,7 +428,7 @@ handler_process_data(<<?TTEST_TAG:32,
<<Body:SZ/binary, Rest2/binary>> = Rest,
case handler_send_reply(Mod, Sock, ID, Body) of
ok ->
- handler_process_data(Rest2, Mod, Sock, MCnt+1, BCnt+SZ, ID);
+ handler_process_data(Rest2, Mod, Sock, MCnt+1, BCnt+16+SZ, ID);
{error, _} = ERROR ->
ERROR
end;