zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eolivelli <...@git.apache.org>
Subject [GitHub] zookeeper pull request #119: ZOOKEEPER-2251:Add Client side packet response ...
Date Tue, 24 Jul 2018 20:28:19 GMT
Github user eolivelli commented on a diff in the pull request:

    --- Diff: src/java/main/org/apache/zookeeper/client/ZKClientConfig.java ---
    @@ -56,9 +56,15 @@
         public static final String SECURE_CLIENT = ZooKeeper.SECURE_CLIENT;
         public static final int CLIENT_MAX_PACKET_LENGTH_DEFAULT = 4096 * 1024; /* 4 MB */
    +    public static final String ZOOKEEPER_REQUEST_TIMEOUT = "zookeeper.request.timeout";
    +    /**
    +     * Feature is disabled by default.
    --- End diff --
    Totally agree, they are very different things. I mentioned it because configured session
timeout is like a client side hint about how much time you can tolerate to be disconnected/not
responsive, but it is better to keep it separate from this low level knob.
    Anyway I wonder if it would be better to set a default timeout.
    If there is a chance of infinite wait maybe it can be worth.
    We can use a very large timeout, in the order of minutes.
    Tipical session timeout is in the order of seconds


View raw message