From: Oleg D. <ol...@vs...> - 2006-11-25 19:44:26
|
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 <ol...@vs...> OOD3-RIPE Phone: +7 4732 531789 Fax: +7 4732 531415 http://www.vsi.ru CenterTelecom Voronezh ISP http://isp.vsi.ru |