I am developing project using Tcl + Thread (BitTorrent tracker). At first I
tried to use model where main thread after accepting new connection (using
socket -server) transfers connection socket to free thread using
thread::transfer. But testing of this model reveals slow memory leak (about
1Mb/minute with requests rate about 100 req/sec). Using Tcl memory debugging
(Tcl and Thread built with --enable-symbols=mem) and memory command I found
that memory leaks after each thread::transfer call. This observes on latest
Tcl/Threads versions as well (tcl8.4.14 and thread2.6.5).
Is this a known issue ? Is thread::transfer requires some extra dealing with
transferred filedescriptors before or after transfer ?
--
Oleg Derevenetz <oleg@[...].ru> OOD3-RIPE
Phone: +7 4732 531789
Fax: +7 4732 531415 http://www.vsi.ru
CenterTelecom Voronezh ISP http://isp.vsi.ru
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-Threads mailing list
Tcl-Threads@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-threads