Kezhu Wang created ZOOKEEPER-4881: ------------------------------------- Summary: Support non blocking ZooKeeper::close Key: ZOOKEEPER-4881 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4881 Project: ZooKeeper Issue Type: New Feature Reporter: Kezhu Wang
{{ZooKeeper::close}} is synchronous, it waits until {{OpCode.closeSession}} returned. I think it would be useful to support background closing to avoid block caller, just like `close(2)` for socket. We probably could use {{ZooKeeperBuilder}} from ZOOKEEPER-4697 to manually enable it. This way we would not surprise anyone just like `SO_LINGER` for socket. -- This message was sent by Atlassian Jira (v8.20.10#820010)