Skip to content

Problem with persistent connection #37

@mkalafior

Description

@mkalafior

When I'm using persistent connection from time to time (it's totally random) HMSET returns false instead of OK message even for same commends and arguments.

success

hmset:
resource(31, phpredis connection persistent)
array (size=12)
  0 => string 'HMSET' (length=5)
  1 => string 'zone:tablet:641' (length=15)
  2 => string 'product' (length=7)
  3 => string 'pd' (length=2)
  4 => string 'queue' (length=5)
  5 => string '10907' (length=5)
  6 => string 'fviews' (length=6)
  7 => string '0' (length=1)
  8 => string 'ftime' (length=5)
  9 => string '0' (length=1)
  10 => string 'subdomain' (length=9)
  11 => string 'ads' (length=3)
string 'OK' (length=2)

error

hmset:
resource(31, phpredis connection persistent)
array (size=12)
  0 => string 'HMSET' (length=5)
  1 => string 'zone:tablet:641' (length=15)
  2 => string 'product' (length=7)
  3 => string 'pd' (length=2)
  4 => string 'queue' (length=5)
  5 => string '10907' (length=5)
  6 => string 'fviews' (length=6)
  7 => string '0' (length=1)
  8 => string 'ftime' (length=5)
  9 => string '0' (length=1)
  10 => string 'subdomain' (length=9)
  11 => string 'ads' (length=3)
boolean false

Any idea why is this happening ?

Specs:

  • OSX 10.10
  • last development version of the Redis
  • hiredis 0.11.0
  • last development version of the phpiredis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions