summaryrefslogtreecommitdiffstats
path: root/modules/http/http_request.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2018-07-18 23:55:29 +0200
committerYann Ylavic <ylavic@apache.org>2018-07-18 23:55:29 +0200
commit8a6e1c3adaeff09563df4a9da8b72eca29befda6 (patch)
treec9320044ada29e59190b6edb9c587fac8ee3f19c /modules/http/http_request.c
parent* Makefile.in (install-suexec*): Fix make -jN install. (diff)
downloadapache2-8a6e1c3adaeff09563df4a9da8b72eca29befda6.tar.xz
apache2-8a6e1c3adaeff09563df4a9da8b72eca29befda6.zip
core: core output filter optimizations.
The core output filter used to determine first if it needed to block before trying to send its data (including set aside ones), and if so it did call send_brigade_blocking(). This can be avoided by making send_brigade_nonblocking() send as much data as possible (nonblocking), and only if data remain check whether they should be flushed (blocking), according to the same ap_filter_reinstate_brigade() heuristics but afterward. This allows both to simplify the code (axe send_brigade_blocking and some duplicated logic) and optimize sends since send_brigade_nonblocking() is now given all the buckets so it can make use of scatter/gather (iovec) or NOPUSH option with the whole picture. When sendfile is available and/or with fine tuning of FlushMaxThreshold (and ReadBufferSize) from r1836032, one can now take advantage of modern network speeds and bandwidth. This commit also adds some APLOG_TRACE6 messages for outputed bytes (including at mod_ssl level since splitting happens there when it's active). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836237 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http/http_request.c')
0 files changed, 0 insertions, 0 deletions