diff options
author | Peter Andersson <[email protected]> | 2015-04-23 12:54:38 +0200 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2015-04-23 13:25:28 +0200 |
commit | 70d806d92e030f3c5e1b527b360f3bb17664fcd7 (patch) | |
tree | 964a6c7f6331947a6607b33cbf55a43b382d1661 /lib/common_test | |
parent | b3ad09ba107de16259844fe5bc50898ae40a1a96 (diff) | |
download | otp-70d806d92e030f3c5e1b527b360f3bb17664fcd7.tar.gz otp-70d806d92e030f3c5e1b527b360f3bb17664fcd7.tar.bz2 otp-70d806d92e030f3c5e1b527b360f3bb17664fcd7.zip |
Increase speed of keep_alive (NOP) polls
Diffstat (limited to 'lib/common_test')
-rw-r--r-- | lib/common_test/src/ct_telnet.erl | 4 | ||||
-rw-r--r-- | lib/common_test/src/ct_telnet_client.erl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_telnet.erl b/lib/common_test/src/ct_telnet.erl index d906a267a1..96af55195f 100644 --- a/lib/common_test/src/ct_telnet.erl +++ b/lib/common_test/src/ct_telnet.erl @@ -29,7 +29,7 @@ %% Command timeout = 10 sec (time to wait for a command to return) %% Max no of reconnection attempts = 3 %% Reconnection interval = 5 sek (time to wait in between reconnection attempts) -%% Keep alive = true (will send NOP to the server every 10 sec if connection is idle) +%% Keep alive = true (will send NOP to the server every 8 sec if connection is idle) %% Polling limit = 0 (max number of times to poll to get a remaining string terminated) %% Polling interval = 1 sec (sleep time between polls)</pre> %% <p>These parameters can be altered by the user with the following @@ -1007,7 +1007,7 @@ silent_teln_expect(Name,Pid,Data,Pattern,Prx,Opts) -> put(silent,Old), Result. -%% teln_expect/5 +%% teln_expect/6 %% %% This function implements the expect functionality over telnet. In %% general there are three possible ways to go: diff --git a/lib/common_test/src/ct_telnet_client.erl b/lib/common_test/src/ct_telnet_client.erl index b0734d8d65..f271133a38 100644 --- a/lib/common_test/src/ct_telnet_client.erl +++ b/lib/common_test/src/ct_telnet_client.erl @@ -39,7 +39,7 @@ -define(TELNET_PORT, 23). -define(OPEN_TIMEOUT,10000). --define(IDLE_TIMEOUT,10000). +-define(IDLE_TIMEOUT,8000). %% telnet control characters -define(SE, 240). |