-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
When I implement KeyStreamOutput and use it, it freezes after 1 minute:
class DeleteStream implements KeyStreamOutput {
/** @var Bucket */
public $bucket;
public function __construct(Bucket $bucket) {
$this->bucket = $bucket;
}
public function process($key) {
echo "Deleting key $key\n";
$this->bucket->delete($key);
}
}
$bucket = $riak->getBucket('test');
$bucket->getKeyStream(new DeleteStream($bucket));This example works for approximately 1 minute and then stops printing anything. Also, no more keys are deleted, after 1 minute. Is is possible Riak disconnects the connection and our library does not reconnects?