ok. How would i do it?

"Iaki Baz Castillo" <ibc / aliax.net> wrote in post #974483:
> 2011/1/13 Dominic Gatzen <dominic.gatzen / gmx.de>:
>> My problem ist that i run into an odd situation. A client send messages
>> to the socket "listen_client" on the other side, but my script does not
>> recognize it. The thread from_client_to_service is still at the gets
>> line. But when i terminate the client, the messages will be received.
>> This happens every time after a different number of messages. I Think
>> it's a kind of deadlock, but i can't see it.
>
> Your code could be easily implemented with EventMachine in a single
> thread (non blocking reactor fashion). It would be really easier than
> handling threads (and debugging them).