From: Dominic Gatzen Date: 2011-01-13T16:52:07+09:00 Subject: Re: Threaded Socket communication problem. ok. How would i do it? "Iñaki Baz Castillo" wrote in post #974483: > 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). -- Posted via http://www.ruby-forum.com/.