Skip to content

\x0a in key passed to get() and set() locks up connection and triggers a fatal timeout error #339

Closed
@hugovangalen

Description

@hugovangalen

FYI: after I had accidentally added binary data to the key value, I discovered that the value passed to get() and set() are allowed to contain data that can trigger a fatal error (memcache timeout after X seconds). This only affects the running PHP script.

See this short example below.

$data = [];
$key = "test\x0a";
$test = $m->get( $key );
$m->set( $key, $data, 300 );

Interestingly, it does not happen if the get() is commented out. It has to be get() first before set() hangs.

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