diff options
Diffstat (limited to 'examples/tcp_echo')
-rw-r--r-- | examples/tcp_echo/relx.config | 2 | ||||
-rw-r--r-- | examples/tcp_echo/src/echo_protocol.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/tcp_echo/relx.config b/examples/tcp_echo/relx.config index a850b71..ee746d5 100644 --- a/examples/tcp_echo/relx.config +++ b/examples/tcp_echo/relx.config @@ -1,2 +1,2 @@ -{release, {tcp_echo_example, "1"}, [tcp_echo]}. +{release, {tcp_echo_example, "1"}, [tcp_echo, sasl]}. {extended_start_script, true}. diff --git a/examples/tcp_echo/src/echo_protocol.erl b/examples/tcp_echo/src/echo_protocol.erl index c07b424..7312e53 100644 --- a/examples/tcp_echo/src/echo_protocol.erl +++ b/examples/tcp_echo/src/echo_protocol.erl @@ -15,7 +15,7 @@ init(Ref, Transport, _Opts = []) -> loop(Socket, Transport). loop(Socket, Transport) -> - case Transport:recv(Socket, 0, 5000) of + case Transport:recv(Socket, 0, 30000) of {ok, Data} when Data =/= <<4>> -> Transport:send(Socket, Data), loop(Socket, Transport); |