couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1005113 - /couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl
Date Wed, 06 Oct 2010 16:35:19 GMT
Author: fdmanana
Date: Wed Oct  6 16:35:19 2010
New Revision: 1005113

URL: http://svn.apache.org/viewvc?rev=1005113&view=rev
Log:
New replicator: setting timeout to inifnity when listening for remote _changes.

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=1005113&r1=1005112&r2=1005113&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl Wed Oct  6 16:35:19 2010
@@ -323,7 +323,9 @@ changes_since(#httpdb{} = HttpDb, Style,
         [{"style", atom_to_list(Style)}, {"since", integer_to_list(StartSeq)}],
         Options),
     send_req(
-        HttpDb,
+        % Shouldn't be infinity, but somehow if it's not, issues arise
+        % frequently with ibrowse.
+        HttpDb#httpdb{timeout = infinity},
         [{path, "_changes"}, {qs, QArgs},
             {ibrowse_options, [{stream_to, {self(), once}}]}],
         fun(200, _, DataStreamFun) ->



Mime
View raw message