andreiz / php-zookeeper

A PHP extension for interfacing with Apache ZooKeeper
Other
449 stars 215 forks source link

Unable to disable sessions #4

Open roycamp opened 13 years ago

roycamp commented 13 years ago

When compiling with --disable-zookeeper-session the .so is a different file size, however, it still maintains the same session ID between reconnects. It's almost as if the client library is handling the session regardless. Is this expected behavior?

Basically, I am trying to reconnect if the connection is lost, but do not want to maintain session. Tried many methods and the only thing that works is destroying the object instance and creating a new one (not very elegant...)

Perhaps this could be solved by implementing the close() method? It is documented in the zookeeper-api.php but is not in the c code. Not sure what happened there?

Any idea or feedback on this issue would be greatly appreciated, thanks!

Timandes commented 9 years ago

--disable-zookeeper-session Disable zookeeper session handler support

This option only disables the session handler, not the zookeeper session.

Timandes commented 6 years ago

Could you try php-zookeeper/php-zookeeper@c0295fa of branch close if you are still interested in this issue?