You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2010/12/29 16:55:25 UTC

svn commit: r1053656 - /couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl

Author: kocolosk
Date: Wed Dec 29 15:55:25 2010
New Revision: 1053656

URL: http://svn.apache.org/viewvc?rev=1053656&view=rev
Log:
Ignore closed connection after _changes are downloaded

Closes COUCHDB-993

Modified:
    couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl

Modified: couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl?rev=1053656&r1=1053655&r2=1053656&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl Wed Dec 29 15:55:25 2010
@@ -227,6 +227,9 @@ handle_info({ibrowse_async_response_end,
 handle_info({'EXIT', From, normal}, #state{changes_loop=From} = State) ->
     handle_feed_completion(State);
 
+handle_info({'EXIT', From, normal}, #state{conn=From, complete=true} = State) ->
+    {noreply, State};
+
 handle_info({'EXIT', From, Reason}, #state{changes_loop=From} = State) ->
     ?LOG_ERROR("changes_loop died with reason ~p", [Reason]),
     {stop, changes_loop_died, State};