You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using sub/pub feature to do websocket communication. I find that a subscribe connection is never recycled, which lead to this NoAvailableConnectionsInPoolError error.
subscriber=awaitrequest.app.redis.start_subscribe()
subscriber.subscribe(['history'])
whileTrue:
# read reply and pass it to clientpass
Should i manually release connection from subscribing, maybe?
The text was updated successfully, but these errors were encountered:
The connection pool isn't very useful in this library because there's no way to return a connection to the pool that I could see. connection.close() seems to reduce the poolsize which is not helpful. Also the pool is a list of connections, so if you say poolsize=1000 you have 1000 connections before even using one.
But I was able to get what I needed by using the Protocol functionality shown in the readme.
I am using sub/pub feature to do websocket communication. I find that a subscribe connection is never recycled, which lead to this
NoAvailableConnectionsInPoolError
error.Should i manually release connection from subscribing, maybe?
The text was updated successfully, but these errors were encountered: