nghttp2/examples
Tatsuhiro Tsujikawa 9eff511c5e Add nghttp2_send_data_callback to send DATA payload without copying
To avoid buffer copy in nghttp2_data_source_read_callback, this commit
introduces NGHTTP2_DATA_FLAG_NO_COPY and nghttp2_send_data_callback.
By using NGHTTP2_DATA_FLAG_NO_COPY in
nghttp2_data_source_read_callback, application can avoid to copy
application data to given buffer.  Instead, application has to
implement nghttp2_send_data_callback to send complete DATA frame by
itself.  We see noticeable performance increase in nghttpd and
tiny-nghttpd using this new feature.  On the other hand, nghttpx does
not show such difference, probably because buffer copy is not
bottleneck.  Using nghttp2_send_data_callback adds complexity, so it
is recommended to measure the performance to see whether this extra
complexity worth it.
2015-04-04 21:23:50 +09:00
..
.gitignore examples: Update .gitignore 2015-03-06 03:14:26 +09:00
Makefile.am examples: Place AM_CPPFLAGS first to use in-package header files first 2015-03-26 23:09:39 +09:00
asio-cl.cc asio: Remove eof check in asio-cl.cc 2015-03-07 03:10:37 +09:00
asio-cl2.cc asio: Use host_service_from_uri in asio-cl2.cc 2015-03-07 01:10:49 +09:00
asio-sv.cc asio: Add server::response::write_trailer() 2015-03-07 19:26:42 +09:00
asio-sv2.cc asio: Clean up server API to explicitly set error code 2015-03-07 01:10:49 +09:00
client.c examples/client: Send SETTINGS 2015-02-06 01:22:29 +09:00
deflate.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
libevent-client.c Fix: error pointer target types incompatible in C++ [-Werror=c++-compat] 2014-12-16 17:54:47 +01:00
libevent-server.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
tiny-nghttpd.c Add nghttp2_send_data_callback to send DATA payload without copying 2015-04-04 21:23:50 +09:00