Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 9062 invoked from network); 29 Dec 2010 16:01:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Dec 2010 16:01:40 -0000 Received: (qmail 88087 invoked by uid 500); 29 Dec 2010 16:01:40 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 87996 invoked by uid 500); 29 Dec 2010 16:01:39 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 87988 invoked by uid 99); 29 Dec 2010 16:01:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Dec 2010 16:01:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Dec 2010 16:01:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 786D423889EB; Wed, 29 Dec 2010 16:01:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1053659 - /couchdb/branches/1.0.x/src/couchdb/couch_rep_changes_feed.erl Date: Wed, 29 Dec 2010 16:01:17 -0000 To: commits@couchdb.apache.org From: kocolosk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101229160117.786D423889EB@eris.apache.org> Author: kocolosk Date: Wed Dec 29 16:01:17 2010 New Revision: 1053659 URL: http://svn.apache.org/viewvc?rev=1053659&view=rev Log: Ignore closed connection after _changes are downloaded Closes COUCHDB-993 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=1053659&r1=1053658&r2=1053659&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 Wed Dec 29 16:01:17 2010 @@ -204,6 +204,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};