You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2021/04/06 16:36:43 UTC

[couchdb-erlfdb] branch make-default-timeout-infinity created (now 1a485b8)

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a change to branch make-default-timeout-infinity
in repository https://gitbox.apache.org/repos/asf/couchdb-erlfdb.git.


      at 1a485b8  Make the default wait timeout infinity (continued)

This branch includes the following new commits:

     new 1a485b8  Make the default wait timeout infinity (continued)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[couchdb-erlfdb] 01/01: Make the default wait timeout infinity (continued)

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch make-default-timeout-infinity
in repository https://gitbox.apache.org/repos/asf/couchdb-erlfdb.git

commit 1a485b805840593422e1da884ef552fd667fa2cf
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Tue Apr 6 12:26:50 2021 -0400

    Make the default wait timeout infinity (continued)
    
    This the continuation of https://github.com/apache/couchdb-erlfdb/pull/22. There,
    we updated only one `after` clause and forgot the other. The reasoning is the
    same as before -- make erlfdb behave consistent with other FDB clients which
    do not have top level client-side timeouts for futures.
---
 src/erlfdb.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/erlfdb.erl b/src/erlfdb.erl
index 8353acd..b0e0714 100644
--- a/src/erlfdb.erl
+++ b/src/erlfdb.erl
@@ -253,7 +253,7 @@ wait(?IS_FUTURE = Future, Options) ->
             flush_future_message(Future),
             Result;
         false ->
-            Timeout = erlfdb_util:get(Options, timeout, 5000),
+            Timeout = erlfdb_util:get(Options, timeout, infinity),
             {erlfdb_future, MsgRef, _Res} = Future,
             receive
                 {MsgRef, ready} -> get(Future)