Skip to content

KeyStreamOutput freezes after 1 minute #74

Description

@pavelsmolka

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions