Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Connections queue support #46

Open
wants to merge 1 commit into
from

Conversation

2 participants

emdagon commented May 14, 2012

Instead of raise the TooManyConnections exception when maxconnections is reached, the outgoing requests will be queued until a slot become free.

I faced a problem regarding this issue on a high concurrency scenario, I did some tests and seems to work properly.

Owner

emdagon commented on acc44f4 May 11, 2012

This commit avoid the TooManyConnections exception in favor to manage a waiting list of connections. Instead of raise the exception, it will take the next cached connection and run the operation (find, update, ...) on it.

Isn't this the same as pull request 45, #45 ?

emdagon commented May 29, 2012

@FlorianLudwig It solve the same problem, but the implementation it's a little bit different (In this one, the connection is taken on the releasing event, IMHO it's a little bit efficient)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment