Posted on 2006-11-29 21:20:18-08 by jdhedden in response to 3651
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
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.