aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2015-04-23 14:07:10 +0200
committerPeter Andersson <[email protected]>2015-04-23 14:07:10 +0200
commitda04b3c60446fd1a25ab1e0de1566587aadc609b (patch)
tree7328a9dc18f5626ceaecb4450fab41a0f35e774c
parent70d806d92e030f3c5e1b527b360f3bb17664fcd7 (diff)
downloadotp-da04b3c60446fd1a25ab1e0de1566587aadc609b.tar.gz
otp-da04b3c60446fd1a25ab1e0de1566587aadc609b.tar.bz2
otp-da04b3c60446fd1a25ab1e0de1566587aadc609b.zip
Set TCP option {nodelay,true} as default for telnet connections
-rw-r--r--lib/common_test/src/ct_telnet_client.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_telnet_client.erl b/lib/common_test/src/ct_telnet_client.erl
index f271133a38..757ccc0aae 100644
--- a/lib/common_test/src/ct_telnet_client.erl
+++ b/lib/common_test/src/ct_telnet_client.erl
@@ -114,7 +114,7 @@ get_data(Pid) ->
%%%-----------------------------------------------------------------
%%% Internal functions
init(Parent, Server, Port, Timeout, KeepAlive, ConnName) ->
- case gen_tcp:connect(Server, Port, [list,{packet,0}], Timeout) of
+ case gen_tcp:connect(Server, Port, [list,{packet,0},{nodelay,true}], Timeout) of
{ok,Sock} ->
dbg("~p connected to: ~p (port: ~w, keep_alive: ~w)\n",
[ConnName,Server,Port,KeepAlive]),