Useless use of a variable in void context at ./threaded-chat-server li +ne 120. Useless use of a variable in void context at ./threaded-chat-server li +ne 120. Which is: %E = ( map { $1 => $2; /(.+):(.+)/ } ( split /;/, $Elm ) );
I see there are alot of warnings when trying to print to clients, about unitialized values. I tried connecting 3 clients. The server reported the 3 connections, but when I sent something from the clients, it was not printed unless I hit enter twice, but that's minor. More serious: there was no chat-echo back to any client, but the line feeds were echoed if I hit enter repeatedly. So there is a connection and this is promising. So this thing is far from ready to go. If I manage to get it working over the holidays, I'll post it as a snippet. I did observe the problem you are talking about. I start 3 clients and send some messages, Then I kill all clients and then restart them. If I send from client 2 or 3, all goes well; but as soon as I try to send from client1, the whole thing just crashes taking all clients with it. I tried one of these threaded servers before, and didn't get as far as you did, so it looks hopeful. Thanks for posting your code.
In reply to Re: thread:shared
by zentara
in thread thread:shared
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |