aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/examples/gen_tcp_dist
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-06-30 19:10:31 +0200
committerRickard Green <[email protected]>2017-08-28 14:42:49 +0200
commitca4b42a159c5cc937967c2d04818afa6b8022e0b (patch)
treee2e55d51e7dd3e929af4fa638385468fd9a00c37 /lib/kernel/examples/gen_tcp_dist
parent87677f64629f1f738e132659c445c3431b02c0b2 (diff)
downloadotp-ca4b42a159c5cc937967c2d04818afa6b8022e0b.tar.gz
otp-ca4b42a159c5cc937967c2d04818afa6b8022e0b.tar.bz2
otp-ca4b42a159c5cc937967c2d04818afa6b8022e0b.zip
Support for running test suites with gen_tcp_dist
Diffstat (limited to 'lib/kernel/examples/gen_tcp_dist')
-rw-r--r--lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl b/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl
index 002d09fc74..98554ed805 100644
--- a/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl
+++ b/lib/kernel/examples/gen_tcp_dist/src/gen_tcp_dist.erl
@@ -736,6 +736,15 @@ dist_cntrlr_output_loop(DHandle, Socket) ->
end,
dist_cntrlr_output_loop(DHandle, Socket);
+ {send, From, Ref, Data} ->
+ %% This is for testing only!
+ %%
+ %% Needed by some OTP distribution
+ %% test suites...
+ sock_send(Socket, Data),
+ From ! {Ref, ok},
+ dist_cntrlr_output_loop(DHandle, Socket);
+
_ ->
%% Drop garbage message...
dist_cntrlr_output_loop(DHandle, Socket)