[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Mysterious code in httpd.c
From: Bernd Petrovitsch <bernd () firmix ! at>
Date: 2007-08-19 19:42:01
Message-ID: 1187552521.3986.101.camel () gimli ! at ! home
[Download RAW message or body]
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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic