Browse files

added tcp error for simple replies

  • Loading branch information...
1 parent 4e588ec commit 34b58d836a46f5448d0e986be7b6c5827ada154b zeusfaber committed Jan 19, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/merle.erl
View
4 src/merle.erl
@@ -304,7 +304,9 @@ send_get_cmd(Socket, Cmd) ->
recv_simple_reply() ->
receive
{tcp,_,Data} ->
- string:tokens(binary_to_list(Data), "\r\n")
+ string:tokens(binary_to_list(Data), "\r\n");
+ {error, closed} ->
+ connection_closed
after ?TIMEOUT ->
timeout
end.

0 comments on commit 34b58d8

Please sign in to comment.