couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1092109 - /couchdb/branches/1.1.x/src/couchdb/couch_rep_changes_feed.erl
Date Thu, 14 Apr 2011 10:39:14 GMT
Author: fdmanana
Date: Thu Apr 14 10:39:14 2011
New Revision: 1092109

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


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

Modified: couchdb/branches/1.1.x/src/couchdb/couch_rep_changes_feed.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_rep_changes_feed.erl?rev=1092109&r1=1092108&r2=1092109&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_rep_changes_feed.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_rep_changes_feed.erl Thu Apr 14 10:39:14 2011
@@ -255,6 +255,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