On Mon, Mar 2, 2009 at 6:31 PM, Vlad Seryakov <v...@crystalballinc.com> wrote:
> I am working with persistent connections right now and want to track when the 
> socket is closed to cleanup some memory in
> Tcl but it looks like there is no way to call cleanup Tcl proc on socket 
> close. I am thinking to extend ns_sls to attach
> Tcl proc to be called at cleanup stage.
> Is this right thing to do?


What else have you had to modify to create persistent connections -- a
new driver?  You could run cleanup callbacks from your
Ns_DriverCloseProc.

Also, in what thread do you expect callbacks to run? In which thread
are the sockets being held open?

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to