Quote:
Originally Posted by koko20
Thank you my friend Fang Do you think these codes eliminate the problem
|
They do. I ran it with a block test and the connections were killed successfully (in the exception to the one connection that it was using to kill the connections- which is killed on the next execution of the void).
Quote:
Originally Posted by marlyandedsel
Fang should I call this KillConnections.Kill(); every reading or opening the database?
|
No. You should make a new thread and call it "ServerManagement" (if you don't already have a server management thread that manages server cleanups and runs about twice a minute). Definitely don't call this to kill connections every time mysql is executed.