informatikr / hedis

A Redis client library for Haskell.
http://hackage.haskell.org/package/hedis
BSD 3-Clause "New" or "Revised" License
329 stars 127 forks source link

Pubsub and connectMaxIdleTime #20

Closed vincentbernat closed 8 years ago

vincentbernat commented 10 years ago

Hey!

When using hedis for pub/sub, the connection to Redis supporting pubsub can be closed due to connectMaxIdleTime reached if there are other long running connections. In this case, it is not reopened automatically and we don't have any clue on why nothing is hapenning anymore.

Dunno what the best way to handle is. Maybe disable connectMaxIdleTime when a subscription is active for a given connection?

steelbrain commented 10 years ago

+1

ozataman commented 9 years ago

I don't think a connection being used for PubSub counts as idle. Doesn't resource-pool take them out of the idle pool using withResource. They would therefore not be closed, but considered "in use". Right?

k-bx commented 8 years ago

Closing this due to what @ozataman said.