[Proxool-developer] Re: Proxool behavior when max connection reached
UNMAINTAINED!
Brought to you by:
billhorsman
|
From: Craig S. <cs...@cr...> - 2004-05-15 19:44:35
|
Has any work been done on this. I need a similar behavior and might try to implement it, but I do not want to duplicate effort. It seems that you would not need to more settings you would just need an allowed to wait count which if it was not 0 would make your normal limit your soft limit and then add to it for the hard limit. It looks like there are only 2 spots in the code that would need to be changed, but since the current code tries very hard not to synchronize I am not sure of the best way to do this. It would seem that if you would allow for threads to wait you would want to synchronize at that point and then notify the threads as a connection is returned. You could simply check for that feature being tunred on and only synchronize then, but you would have to make sure that if you hot change the settings to disable the waiting that you notify the waiting threads. Craig -- In theory, practice and theory are the same, but in practice they are different GPG Public Key https://www.cromagnon.com/ssl/craigkey.gpg |