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 2010/09/11 13:55:57 UTC

svn commit: r996126 - /couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl

Author: fdmanana
Date: Sat Sep 11 11:55:57 2010
New Revision: 996126

URL: http://svn.apache.org/viewvc?rev=996126&view=rev
Log:
New replicator: avoid TCP timeouts when listening for continuous _changes of a remote DB.

Modified:
    couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl

Modified: couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl?rev=996126&r1=996125&r2=996126&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl Sat Sep 11 11:55:57 2010
@@ -279,7 +279,7 @@ changes_since(#httpdb{} = HttpDb, Style,
         [{"style", atom_to_list(Style)}, {"since", integer_to_list(StartSeq)}],
         Options),
     send_req(
-        HttpDb,
+        HttpDb#httpdb{timeout = infinity},
         [{path, "_changes"}, {qs, QArgs},
             {ibrowse_options, [{stream_to, {self(), once}}]}],
         fun(200, _, DataStreamFun) ->