I did not do anything yet, just running the idea by.

Persistent conns are available right now, our driver supports it, just 
need to set keep alive timeout to be long enough and you have TCP 
connection for free. The callbacks for cleanup i think should be running 
on NsConnClose in the same thread, in queue.c. Currently i can live 
without cleanup, i just do not do any cleanups but having it would be 
very useful.

Stephen Deasey wrote:
> 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
> 

-- 
Vlad Seryakov
v...@crystalballinc.com
http://www.crystalballinc.com/vlad/

------------------------------------------------------------------------------
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