Skip to content

Commit

Permalink
change forward/0 receive timeout to macro
Browse files Browse the repository at this point in the history
  • Loading branch information
pouriya committed Jul 5, 2017
1 parent bca6042 commit 232aaa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sockerl_acceptor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
-define(DEFAULT_ACCEPT_TIMEOUT, 500).
-define(DEFAULT_HANDSHAKE_TIMEOUT, 500).
-define(DEFAULT_MODE, ?ACCEPT).
-define(DEFAULT_FORWARD_RECEIVE_TIMEOUT, 500).



Expand Down Expand Up @@ -422,7 +423,7 @@ forward(Pid) ->
Msg ->
Pid ! Msg,
forward(Pid)
after 500 ->
after ?DEFAULT_FORWARD_RECEIVE_TIMEOUT ->
ok
end.

Expand Down

0 comments on commit 232aaa1

Please sign in to comment.