couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1092108 - /couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl
Date Thu, 14 Apr 2011 10:37:49 GMT
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};
 



Mime
View raw message