summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2011-04-14 10:39:14 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2011-04-14 10:39:14 +0000
commit3d5635311b24118470e09650508d7041234e41e4 (patch)
treefa710bf80ef52e6d231d012a3838fed86d38c193 /src/couchdb
parent1215e205668431d7a916c945285761280489e638 (diff)
Merged revision 1092108 from branch 1.0.x
Replicator: retry connection to remote _changes on close This clause was missing. Two different ibrowse errors signal that the connection was closed: sel_conn_closed and connection_closed. The later is received for streaming connections (like those to _changes). git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1092109 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_rep_changes_feed.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/couchdb/couch_rep_changes_feed.erl b/src/couchdb/couch_rep_changes_feed.erl
index e0d8c30d..1c298937 100644
--- a/src/couchdb/couch_rep_changes_feed.erl
+++ b/src/couchdb/couch_rep_changes_feed.erl
@@ -255,6 +255,10 @@ handle_info({ibrowse_async_response, Id, {error, sel_conn_closed}},
#state{reqid=Id}=State) ->
handle_retry(State);
+handle_info({ibrowse_async_response, Id, {error, connection_closed}},
+ #state{reqid=Id}=State) ->
+ handle_retry(State);
+
handle_info({ibrowse_async_response, Id, {error,E}}, #state{reqid=Id}=State) ->
{stop, {error, E}, State};