severity 604823 wishlist thanks Hi, * Olaf van der Spek <[email protected]> [2010-11-24 16:51]: > Package: httping > Version: 1.4.4-1 > Severity: normal
adjusted severity, there is no bug here
> Reading one byte at a time doesn't seem like the best way. Could you use a
> buffer of 16 k?
>
> Greetings,
>
> Olaf
>
> select(4, NULL, [3], NULL, {30, 0}) = 1 (out [3], left {30, 0})
> write(3, "HEAD / HTTP/1.0\r\nUser-Agent: HTT"..., 64) = 64
> select(4, [3], NULL, NULL, {30, 0}) = 1 (in [3], left {30, 0})
> read(3, "H", 1) = 1
> select(4, [3], NULL, NULL, {30, 0}) = 1 (in [3], left {30, 0})
> read(3, "T", 1) = 1
> select(4, [3], NULL, NULL, {30, 0}) = 1 (in [3], left {30, 0})
> read(3, "T", 1) = 1
> select(4, [3], NULL, NULL, {30, 0}) = 1 (in [3], left {30, 0})
> read(3, "P", 1) = 1
> select(4, [3], NULL, NULL, {30, 0}) = 1 (in [3], left {30, 0})
> read(3, "/", 1) = 1
> select(4, [3], NULL, NULL, {30, 0}) = 1 (in [3], left {30, 0})
> read(3, "1", 1) = 1
>
I agree this is not optimal (even though works and is no bug), looking at the
use of the myread function in the source code its unclear to me why it is
implemented like that. Folkert, is there any reason it should be like that?
Cheers
Nico
--
Nico Golde - http://www.ngolde.de - [email protected] - GPG: 0xA0A0AAAA
For security reasons, all text in this mail is double-rot13 encrypted.
pgpaKgFdTeTWQ.pgp
Description: PGP signature

