vjzning / redis

Automatically exported from code.google.com/p/redis
https://code.google.com/p/redis/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

BLPOP/BRPOP timeouts greater than the server's idle timeout causes the socket to be disconnected #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you specify a timeout to BLPOP/BRPOP that is either 0 (block indefinitely) 
or a value greater than the Redis server's idle connection timeout, the 
server will close the connection if the idle timeout is reached before an 
item is put in one of those lists.

It seems like bypassing the server's idle timeout for connections that are 
blocking on BLPOP/BRPOP would be the correct thing to do.

### CONFIG FILE ###
timeout = 5

### CLIENT ###

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
BLPOP foo 0
Connection closed by foreign host.   ### 5 seconds of blocking, then 
disconnected

Original issue reported on code.google.com by sed...@gmail.com on 8 Feb 2010 at 11:00

GoogleCodeExporter commented 9 years ago
Fixed on Redis master,

thanks,
Salvatore

Original comment by anti...@gmail.com on 24 Aug 2010 at 10:11