On 26.03.2008 17:34, Iñáki Baz Castillo wrote: > 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. Why don't you simply use blocking IO? robert