You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/04/14 12:37:49 UTC

svn commit: r1092108 - /couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl

Author: fdmanana
Date: Thu Apr 14 10:37:49 2011
New Revision: 1092108

URL: http://svn.apache.org/viewvc?rev=1092108&view=rev
Log:
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).


Modified:
    couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl

Modified: couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl?rev=1092108&r1=1092107&r2=1092108&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl Thu Apr 14 10:37:49 2011
@@ -191,6 +191,10 @@ handle_info({ibrowse_async_response, Id,
         #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};