couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r996126 - /couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl
Date Sat, 11 Sep 2010 11:55:57 GMT
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) ->



Mime
View raw message