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) ->