[tkined] fileevent causing memory leak

Christopher Akritides (foris@ans.net)
Mon, 8 Jun 1998 10:27:38 -0400 (EDT)

I have written a tcl server that handles up to 15-20 connections/sec.
I am using fileevent to handle the incoming requests and the only problem
I've had is a large memory leak. I have removed every global array from my
code, and the problem remains.

What I do is open a server socket and do a vwait.
In the callback procedure, I open a new socket and call fileevent on it.
In the socket input handler, I do
fileevent $sock ""
close $sock

Am I missing something? Should I be doing something different?

-----------------------------------------------------------------------------
Christopher Akritides Big Dial Development
(914) 701-5391 Page: 1-800-946-4646 1453477 ANS Communications

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.