dev  

Re: sendfile in darwin

Jim Jagielski
Fri, 16 May 2008 07:02:21 -0700

I am assuming that this is NOT with the latest apr-1.3 HEAD
code. Can you confirm that with the latest, all is well?

I believe this is the only outstanding issue with apr?-1.3,
meaning that we can hopefully release APR and then httpd
(I don't want to delay httpd, but it is waiting for either
1.3 or a patched 1.2).

On May 15, 2008, at 11:47 AM, William A. Rowe, Jr. wrote:

FYI - I'm not testing darwin <> darwin, it's just as easy to test darwin
to another OS such as linux or solaris :)

I actually tested both directions, but really we are interested in OS X
as the ./sendfile client.  The ./sendfile server could be anything.

Results (on a loopback test) attached.

Bill

Jim Jagielski wrote:
On May 14, 2008, at 7:56 PM, William A. Rowe, Jr. wrote:
Jim Jagielski wrote:
Trying to recreate.... so far, no luck.

This was at today's trunk.  Again I'd hint, try across the wire with
./sendfile server sitting on yet another box. It's really effective at
making these errors pop out at us.

The only other Mac I have Leopard on is my MacBook... I'm syncing
it now and will try.
In the meantime, can you Email the full test output? I'm interested
in know if it dies when doing headers, sendfile or footers...
apr_socket_recv()->70014/End of file found
Waiting for a client to connect...
Processing a client...
client problem: sent 227008 of 370049 bytes
Creating a test file...
Sending the file...
Calling apr_socket_sendfile()...
Headers (3):
        15 bytes (1)
        5 bytes (E)
        80000 bytes (^)
File: 200000 bytes from offset 0
Trailers (3):
        19 bytes
        10 bytes
        90000 bytes
apr_socket_sendfile()->0, sent 227008 bytes
Calling apr_socket_sendfile()...
Headers (0):
File: 53012 bytes from offset 293976
Trailers (3):
        19 bytes
        10 bytes
        90000 bytes
apr_socket_sendfile()->70014, sent 0 bytes