Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Fix leaky retry solution
Browse files Browse the repository at this point in the history
  • Loading branch information
loucash committed Nov 21, 2014
1 parent 1211c86 commit c597be7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dlhttpc_disp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ checkout(Host, Port, Ssl, MaxConn, ConnTimeout, SocketOpts, CheckoutRetry) ->

checkout(Info, CheckoutRetry) ->
RetryFn = fun(Response, 0) -> Response;
({ok,_,_}=Response, _) -> Response;
(_Response, N) -> checkout(Info, N) end,
Response = dispcount:checkout(Info),
RetryFn(Response, CheckoutRetry-1).
Expand Down

0 comments on commit c597be7

Please sign in to comment.