Skip to content

getStats issue with OPT_BINARY_PROTOCOL and OPT_NO_BLOCK #348

Closed
@ssigwart

Description

@ssigwart

The following code hangs and causes high CPU usage.

$memcached = new Memcached();
$memcached->setOption(Memcached::OPT_NO_BLOCK, true);
$memcached->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
$memcached->addServer('127.0.0.1', 11211, 100);
print_r($memcached->getStats());

I'm using:
PHP: 5.6.29
memcached: 2.2.0
libmemcached: 1.0.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions