in reply to Perl threads memory leak with socket and solutions I tried...

Where does SOCKETSVR::Server come from?

And what does it do that this doesn't?

my $server = IO::Socket::INET->new( LocalHost => 'localhost', LocalPort => '5188', Proto => 'tcp', Listen => 5, Reuse => 1, ) or die "Couldn't create listening socket";

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

Replies are listed 'Best First'.
Re^2: Perl threads memory leak with socket and solutions I tried...
by ilxl (Initiate) on Feb 10, 2010 at 02:16 UTC
    SOCKETSVR::Server is basically IO::Socket::INET. I modified it a little.
      I modified it a little.

      In a way that causes memory leaks?


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        I don't think so. Per what I tried, memory leak has nothing to do with socket, but to do with threads.