From: Shannon Fang Date: 2003-04-02T12:55:34+09:00 Subject: gets from socket got eof (multithread) Hi all, I have a problem here. My program used a structure similar to the following: @session=TCPSocket.new(mypopserver,110) while resp=@session.gets do blah blah end It worked perfect in single user mode. While I put the code into a thread, I encountered problem: a lot of thread got resp=nil, and jumped out of the while loop. My question is: I just connected to the socket, and everything seems fine, why gets return nil? why the socket reaches eof? Please note that in single user mode it is ok. Thanks Shannon _________________________________________________________________ Worried what your kids see online? Protect them better with MSN 8 http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059