On Sun, 2007-08-19 at 20:03 +0100, Denys Vlasenko wrote: > On Sunday 19 August 2007 12:57, Bernd Petrovitsch wrote: [...] > > Perhaps the above can be reduced by simply having a blocking read() > and > > avoid the select(): > > ---- snip ---- > > while (read(accepted_socket, iobuf, sizeof(iobuf)) > 0) { > > /* do nothing */; > > } > > ---- snip ---- > > Well, we can block indefinitely if peer just sits there, doing > nothing. ACK. I overlooked the timeout. Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services