Open roycamp opened 13 years ago
Simplify the sample client to this:
Zookeeper::setDebugLevel(Zookeeper::LOG_LEVEL_DEBUG);
class zookeeper_bug1
{
public function connect_cb($type, $event, $string) {
echo "Connect Callback\n";
}
}
$zk = new Zookeeper();
$zk->connect('localhost:2181', array('zookeeper_bug1', 'connect_cb'));
while(true){
usleep(100000);
}
the fault disappears.
Maybe it's related to the type of callback?
@andreiz
Would you try php-zookeeper/php-zookeeper@ab66987 ?
Minimal script to reproduce is below.
Steps to reproduce: 1) Start ZK Server, Start the client below 2) Stop Server, wait a moment, Start Server. 3) Upon reconnecting it will fail. You can prevent it from failing by not setting a watch during your first connection.
The error it outputs: