httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: some buff.c tuning
Date Mon, 04 Aug 1997 10:01:01 GMT
Oh yeah, here's a 1.2.2 trace including the second rev of the obscure
chunking error patch that I just posted.  There's a lot of cruft that
I'm editing out, there were 166 syscalls versus 130 for 1.3.

read(6, "Content-Type: text/html\r\n\r\nx"..., 4096) = 4096
read(6, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4096) = 4096
read(6, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4096) = 4096
write(3, "HTTP/1.1 200 OK\r\nDate: Mon, 04"..., 4098) = 4098
writev(3, [{"108c\r\n", 6}, {"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4236}, {"\r\n", 2}], 3)
= 4244
read(6, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4096) = 4096
read(6, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4096) = 616
write(3, "ffb\r\nxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4098) = 4098
writev(3, [{"1005\r\n", 6}, {"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4101}, {"\r\n", 2}], 3)
= 4109
read(6, "", 4096)                       = 0
read(6, "", 4096)                       = 0
write(16, "127.0.0.1 - - [04/Aug/1997:02:53"..., 80) = 80
read(6, "Content-Type: text/html\r\n\r\nx"..., 4096) = 4096
read(6, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4096) = 4096
read(6, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4096) = 4096
write(3, "24d\r\nxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4098) = 4098
writev(3, [{"12f8\r\n", 6}, {"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4856}, {"\r\n", 2}], 3)
= 4864
read(6, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4096) = 4096
read(6, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4096) = 616
write(3, "ffb\r\nxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4098) = 4098
writev(3, [{"1005\r\n", 6}, {"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 4101}, {"\r\n", 2}], 3)
= 4109
read(6, "", 4096)                       = 0
read(6, "", 4096)                       = 0
write(16, "127.0.0.1 - - [04/Aug/1997:02:53"..., 80) = 80
write(3, "24d\r\nxxxxxxxxxxxxxxxxxxxxxxxxx"..., 601) = 601

Overall it's similar, except all those write()s were built by memcpy()s
whereas in 1.3 they're replaced by writev()s with no need for memcpy.
The read weirdness is a linux libcism I think... since 1.2.2 is using
FILE * to read from the CGI.

Dean


Mime
View raw message