nicolasff/phpredis — Issue #76: Auto reconnected and no longer on the right DB
Author: chuyskywalker
Created: 2011-11-06 02:14:59+00:00
State: open

I'm not 100% sure what's going on, but I wanted to get this on your radar before I forget.

I've got a redis.conf timeout value of 15 seconds. What I am doing:

1. connect to a redis server from php, using connect()
2. select() command to change databases
3. sleep for 30 seconds
4. run a del command on the same redis object

I get no errors, an infact, when I run MONITOR against the redis host, I can see all the commands come in fine BUT, the commands which happen after the timeout are no longer in the correct DB.

If the phpredis reconnecting automatically here or something?