Revision 643238616239 () - Diff

Link to this snippet: https://friendpaste.com/5IA5MlRx0OZhKmsLNPMeJe
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: src/couchdb/couch_rep_att.erl
===================================================================
--- src/couchdb/couch_rep_att.erl (revision 892491)
+++ src/couchdb/couch_rep_att.erl (working copy)
@@ -79,7 +79,13 @@
ReqId;
{ok, NewReqId} ->
NewReqId
- end
+ end;
+ {ibrowse_async_response, ReqId, {error, Err}} ->
+ ?LOG_ERROR("~p error for ~p, retrying", [Err, Req#http_db.resource]),
+ start_http_request(Req);
+ after 10000 ->
+ ?LOG_ERROR("request for ~p stalled, retrying", [Req#http_db.resource]),
+ start_http_request(Req)
end.
validate_headers(_Req, 200, _Headers) ->