Re: automatically open ports

2007-08-04 Thread Michael Scondo
On Saturday 04 August 2007 04:47, [EMAIL PROTECTED] wrote: > > I'm sorry. I wasnt clear in my first post. A situation arises when my > router gets restarted, the internal ip addresses of the computers in > my home (192.168.1.100 and the like) are shifted around. Normally I > have the router forward

Re: Memory leaks with threads

2007-07-09 Thread Michael Scondo
zentara schrieb: >> I wrote a small server, which accepts connections on a tcp socket and spawns a >> new thread for each connection, which terminates when the socket has been >> closed. >> >> The server runs fine, however, while stresstesting, I experienced a runaway of >> the memory consumpt

Memory leaks with threads

2007-07-05 Thread Michael Scondo
Hi, I'm still trying to get familiar with threads and sockets. However, I got in some troubles with memory leaks, could anyone perhaps give me a hint in which way I should write a multithreaded socket server ? I wrote a small server, which accepts connections on a tcp socket and spawns a new t

Re: strange unexpected deadlock

2007-06-25 Thread Michael Scondo
On Saturday 23 June 2007 15:08, Tom Phoenix wrote: > On 6/23/07, Michael Scondo <[EMAIL PROTECTED]> wrote: > > sub thread1{ > > print "1\n"; > > lock $x; > > print "locked x: 1\n"; > >

strange unexpected deadlock

2007-06-23 Thread Michael Scondo
Hi, I'm trying to make myself familiar with threads. However, I encountered some unexpected behaviour of locks/cond_wait I wasn't able to figure out. Could someone explain to me what's happening ?? Thanks, Michael -- #!/usr/bin/perl -w use threads; use threads::shared; sh