Skip to content


Subversion checkout URL

You can clone with
Download ZIP


New Feature Request. #27

bhargavmist opened this Issue · 5 comments

3 participants


Hi Mengli,

We are currently using the Memcached client and providing the pool parameters through our custom configuration system. We are using the client object as a spring singleton wired into our main codebase.
The issue we are facing is, we want to refresh the pool when any config value is changed in our config system.

In order to do so there should be a method in SchoonerSockIOPool class which will remove the pool object from "pools" HashMap. This method will take in poolname as argument and will remove that object from the HashMap.

If we can do this then we can remove the pool object if any config value is changed and then reinitialize the pool at runtime with new values. With addition of this feature we don't have to recycle our servers everytime a config value is changed.

I was wondering how difficult it would be for you to add this feature?

Thank you for your time.




There is a method called "shutdown" in SchoonerSockIOPool, I think you can shutdown whole pools and then recreate it.

Meng Li


Actually shutdown will remove all the connection pool which is maintained by SchoonerSockIOPool and all the sockets will be closed safely, so no memory leak will occur.

You can re-create specified connection pool after shutting it down. Don't forget to initialize the new connection pool, :)

Meng Lee


Thanks for the immediate response.

Xingen Wang

@newroot newroot closed this
@newroot newroot reopened this
@mengli mengli closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.