aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tcp_echo/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-02-02 23:09:48 +0100
committerLoïc Hoguin <[email protected]>2020-02-10 13:58:28 +0100
commit62c692fad7ff448ccca3505e1dd40be245cbed53 (patch)
tree29766b3547a9c89c4027b39916da382c54aa95fe /examples/tcp_echo/src
parentd92a10b19b8fb203a75b7e4065106573d30546d0 (diff)
downloadranch-62c692fad7ff448ccca3505e1dd40be245cbed53.tar.gz
ranch-62c692fad7ff448ccca3505e1dd40be245cbed53.tar.bz2
ranch-62c692fad7ff448ccca3505e1dd40be245cbed53.zip
Initial release upgrade test suite
Diffstat (limited to 'examples/tcp_echo/src')
-rw-r--r--examples/tcp_echo/src/echo_protocol.erl2
1 files changed, 1 insertions, 1 deletions
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);