phpiredis icon indicating copy to clipboard operation
phpiredis copied to clipboard

Problem with persistent connection

Open mkalafior opened this issue 9 years ago • 0 comments

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

mkalafior avatar Mar 26 '15 08:03 mkalafior