From: amritanshu pandia Date: 2011-11-30T02:34:04+09:00 Subject: Re: TCPServer' s accept method crashes the ruby program Same problem occurs when Webrick server starts . In below code : def accept_client(svr) puts "Inside accept_client1" sock = nil puts "svr = #{svr}" begin puts "Inside accept_client2" sock = svr.accept puts "sock = #{sock}" sock.sync = true Utils::set_non_blocking(sock) Utils::set_close_on_exec(sock) rescue Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPROTO, Errno::EINVAL => ex rescue Exception => ex msg = "#{ex.class}: #{ex.message}\n\t#{ex.backtrace[0]}" @logger.error msg end return sock end prints are coming till "Inside accept_client2". The value of svr is object of TCPServer. But no prints appear for sock as server dies on reaching svr.accept. Please suggest why this is happening while same code is working on other machines -- Posted via http://www.ruby-forum.com/.