Permalink
Browse files

up timeouts

  • Loading branch information...
1 parent 356c52a commit b529673560375e8d2d128dc1ed01fafbef316ea0 @mojombo committed Jul 13, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 elibs/upload_pack.erl
View
@@ -203,7 +203,7 @@ read_chunk_body_from_socket(ChunkSizeHex, Sock, Pipe) ->
end.
read_from_socket(Sock) ->
- case gen_tcp:recv(Sock, 0, 1000) of
+ case gen_tcp:recv(Sock, 0, 5000) of
{ok, Data} ->
% io:format("socket = ~p~n", [Data]),
{data, list_to_binary(Data)};
@@ -256,7 +256,7 @@ readline(Port) ->
Msg ->
error_logger:error_msg("unknown message ~p~n", [Msg]),
{error, Msg}
- after 1000 ->
+ after 5000 ->
error_logger:error_msg("timed out waiting for port~n"),
throw({error, timeout})
end.

0 comments on commit b529673

Please sign in to comment.