Re: simple multithread daemon
[email protected] (Dean Arnold) Wed, 14 Nov 2007 13:02:40 -0800
| Newsgroups | perl.ithreads |
|---|---|
| Message-ID | <[email protected]> |
jack ciabatta wrote: > mmh... but if the client send an "exit" the connection remains active, why? :( > > # telnet 127.0.0.1 2500 > Trying 127.0.0.1... > Connected to 127.0.0.1. > Escape character is '^]'. > hi > exit > EXIT > Please note from my msg: >> (note: this is not complete, and I'm not >> too certain what your app is trying to accomplish, as there are some >> issue esp. wrt using the same STDIN for possibly many clients): That said, you may need to add close $client; after the line >> $done = $doneq->dequeue; and/or do more in the listen_to_client() method to shut it down when stdin_to_client() gets its exit. Dean Arnold Presicient Corp.