From: "Iñaki Baz Castillo" Date: 2008-03-27T01:34:57+09:00 Subject: "loop do IO.select([io], nil, nil)" eats 95% of CPU, any other way? Hi, which is the most efficient way of receiving and processing data from a network socket? I use GServer in this common way: -------------- class MyServer < GServer def serve(io) loop do if IO.select([io], nil, nil) .... -------------- A "top" says to me that Ruby is eating more than 90% of CPU and there is no connections yet... :( Any other suggestion? Really thanks a lot. -- Iñaki Baz Castillo