diff options
author | Loïc Hoguin <[email protected]> | 2020-02-02 23:09:48 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-02-10 13:58:28 +0100 |
commit | 62c692fad7ff448ccca3505e1dd40be245cbed53 (patch) | |
tree | 29766b3547a9c89c4027b39916da382c54aa95fe /examples/tcp_echo | |
parent | d92a10b19b8fb203a75b7e4065106573d30546d0 (diff) | |
download | ranch-62c692fad7ff448ccca3505e1dd40be245cbed53.tar.gz ranch-62c692fad7ff448ccca3505e1dd40be245cbed53.tar.bz2 ranch-62c692fad7ff448ccca3505e1dd40be245cbed53.zip |
Initial release upgrade test suite
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); |