From: "Iñaki Baz Castillo" Date: 2011-01-13T10:59:21+09:00 Subject: Re: Threaded Socket communication problem. 2011/1/13 Dominic Gatzen : > 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). -- Iñaki Baz Castillo