threads-shared - Re: Thread memory not being released.

Posted on Wed Nov 29 23:20:18 2006 by jdhedden in response to 3651 (See the whole thread of 5)
Re: Thread memory not being released.
First of all, make sure you've installed the lastest versions of 'threads' and 'threads::shared' from CPAN. Older versions have been known to leak memory.

You're not clear in your message (and you didn't supply any code) as to what constitutes the 'memory for a client'. If it is stored in a 'field' in your object, then you must delete the field:
delete($obj->{client})
Also, if the client uses its own thread, and that thread exits when the client leaves, then you must either detach the thread or join it. Hope that helps.
Direct Responses: 3663 | Write a response