[Boost-bugs] [Boost C++ Libraries] #3150: boost.asio: async_copy(in, out, ...) for POSIX sendfile() support

Subject: [Boost-bugs] [Boost C++ Libraries] #3150: boost.asio: async_copy(in, out, ...) for POSIX sendfile() support
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-08 13:00:58


#3150: boost.asio: async_copy(in, out, ...) for POSIX sendfile() support
---------------------------------+------------------------------------------
 Reporter: trapni_at_[hidden] | Owner: chris_kohlhoff
     Type: Feature Requests | Status: new
Milestone: Boost 1.40.0 | Component: asio
  Version: Boost 1.39.0 | Severity: Optimization
 Keywords: sendfile posix asio |
---------------------------------+------------------------------------------
 hey guys,

 i wanted to use boost and boost.asio in order to implement a web service,
 however, when transmitting static files, i feel not welcome in just
 memcpy'ing the file into RAM and copying back into kernel space for
 transmission over TCP/IP.
 that's where POSIX sendfile() comes into play.

 it takes an input file descriptor (local file e.g.), an output file
 descriptor (socket e.g.), offset and count, and transfers data directly
 from input to output *without* leaving kernel space, this is highly
 recommented e.g. when sending local files to sockets in HA software.

 just like async_read/async_write, i imagine that it could be possible in
 providing an
   return_type async_copy(input, output, count, finish_callback, ...);

 would you mind?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3150>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC