Permalink
Browse files

wait for response from 2s to 20s

  • Loading branch information...
1 parent 805a2f5 commit 0d21a72a36ac0ea5c6318d1ae3bf13f3bbb167b3 @SergejJurecko committed Feb 25, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 mongodb.erl
View
@@ -186,7 +186,7 @@ exec_find(Collection, Quer) ->
% io:format("cursor ~p from ~p ndocs ~p, ressize ~p ~n", [_CursorID, _From, _NDocs, byte_size(Result)]),
% io:format("~p~n", [Result]),
Result
- after 10000 ->
+ after 20000 ->
not_connected
end
end.
@@ -665,7 +665,7 @@ connection(P, Buf) ->
true;
{tcp_closed, _} ->
exit(stop)
- after 2000 ->
+ after 20000 ->
exit(stop)
end.

0 comments on commit 0d21a72

Please sign in to comment.