Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Issue 368 in redis: Timeout set to 0 does not disable timeout, makes it more angry and wrong.

How the search happen
(13 lines)
How we apply Redis to Sensor networks
(12 lines)
Nov 7, 2010
Redis
Redis
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 368 by zed.shaw: Timeout set to 0 does not disable timeout, makes
 
it more angry and wrong.
http://code.google.com/p/redis/issues/detail?id=368

What steps will reproduce the problem?
1. Set redis.conf timeout 0, which should disable timeouts.
2. Connect and hang out for a period of time.
3. Watch redis disable idle clients, despite timeout 0 saying it should  
never do this.

What is the expected output? What do you see instead?

Redis does not close "idle" connections.

What version of the product are you using? On what operating system?

2.0.0. So far reproduced on Debian and ArchLinux.

Please provide any additional information below.

Ultimately there's no logical reason why a server that is intended to  
function like a database server should be closing connections at all.  The 

default should be that it tries very very hard to keep clients connected,  
and then people who want it the other way set an option.  So far I've tried
 
4 different redis libraries in 3 different languages and all of them have  
to go through fairly horrible *****1s to be able to recognize that the socket
 
is closed and retry the connection.  Otherwise they just blow up huge and  
then your application is forced to constantly check for exceptions on every
 
potential request.

Since it's unlikely that this will change, at least make the timeout 0 work
 
and potentially warn people as to why there is a timeout in the first place
 
so that we don't shoot ourselves in the foot trying to abuse some unclear  
design flaw.






Reply
Tags: redisgoogletimeoutshawlabelspriority
Similar Threads
Re: Issue 261 in redis: JRuby should use Timeout instead of SystemTimer
Updates: Status: Invalid Comment #2 on issue 261 by antirez: JRuby should use Timeout instead of SystemTimer http://code.google.com/p/redis/issues/detail?id=261 Sorry this is not the right place to report Redis clients bugs! This place is…
Re: Issue 155 in redis: BLPOP/BRPOP timeouts greater than the server's idle timeout causes the socke
Updates: Status: Verified Comment #1 on issue 155 by antirez: BLPOP/BRPOP timeouts greater than the server's idle timeout causes the socket to be disconnected http://code.google.com/p/redis/issues/detail?id=155 Fixed on Redis master, thanks,…
Re: Issue 181 in redis: master connect timeout neeed for replication SLAVEOF command to prevent DoS
Comment #1 on issue 181 by jzawodn: master connect timeout neeed for replication SLAVEOF command to prevent DoS http://code.google.com/p/redis/issues/detail?id=181 Adding to this, we were bitten again by this issue recently. Ideally, I'd like…
Commented: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12899862#action_12899862 ] Kathey Marsden commented on DERBY-2026:
Assigned: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor reassigned DERBY-2026:
Updated: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-2026:
Updated: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-2026:
Updated: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor updated DERBY-2026:
Commented: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12897858#action_12897858 ] Mamta A. Satoor commented on DERBY-2026:
Commented: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12897576#action_12897576 ] Lily Wei commented on DERBY-2026:
Updated: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-2026:
Commented: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12897438#action_12897438 ] Kathey Marsden commented on DERBY-2026:
Commented: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12899869#action_12899869 ] Lily Wei commented on DERBY-2026:
Commented: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12899931#action_12899931 ] Kathey Marsden commented on DERBY-2026:
Updated: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-2026:
Commented: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12894607#action_12894607 ] Mamta A. Satoor commented on DERBY-2026:
Commented: (DERBY-2026) Setting a login timeout in client driver can lead to query timeout
[ https://issues.apache.org/jira/browse/DERBY-2026?page=com.atlassian.ji ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= 12899854#action_12899854 ] Kathey Marsden commented on DERBY-2026:
Commented: (ZOOKEEPER-366) Session timeout detection can go wrong if the leader system time changes
[ https://issues.apache.org/jira/browse/ZOOKEEPER-366?page=com.atlassian .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedComment Id=12902937#action_12902937 ] Patrick Hunt commented on ZOOKEEPER-366:
Commented: (ZOOKEEPER-366) Session timeout detection can go wrong if the leader system time changes
[ https://issues.apache.org/jira/browse/ZOOKEEPER-366?page=com.atlassian .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedComment Id=12900997#action_12900997 ] Holger Hoffstätte commented on ZOOKEEPER-366:
Commented: (ZOOKEEPER-366) Session timeout detection can go wrong if the leader system time changes
[ https://issues.apache.org/jira/browse/ZOOKEEPER-366?page=com.atlassian .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedComment Id=12900894#action_12900894 ] Patrick Hunt commented on ZOOKEEPER-366: