]> arthur.barton.de Git - netatalk.git/commit
Increase IO size when sendfile() is not used
authorRalph Boehme <sloowfranklin@gmail.com>
Tue, 19 Mar 2013 14:26:03 +0000 (15:26 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Tue, 19 Mar 2013 14:26:03 +0000 (15:26 +0100)
commit023609beb221be242a4aca3bceee9d19e396f496
treec03e16e3f81ea789019d3255052a5216e64ea2c8
parentdf482c7788ac6accb3499c153a6527f5abf833aa
Increase IO size when sendfile() is not used

If sendfile() support is disabled, the current code results in an
IO size of 8k for transferring requested data to the client. Eg:
- client request to read DSI quantum size bytes (~250k) from a file
- afpd process loops read(8k, file) -> send(8k, client) until all
  250k have been transferred
This should be modified to read the whole 250k in one swoop from the
file to a buffer and then send the whole buffer in one swoop to the
client.

From FR #76.
NEWS
etc/afpd/fork.c
libatalk/dsi/dsi_stream.c