Mercurial > hg > nginx
comparison src/os/unix/ngx_linux_config.h @ 8811:bb5152ed045b quic
QUIC: added support for segmentation offloading.
To improve output performance, UDP segmentation offloading is used
if available. If there is a significant amount of data in an output
queue and path is verified, QUIC packets are not sent one-by-one,
but instead are collected in a buffer, which is then passed to kernel
in a single sendmsg call, using UDP GSO. Such method greatly decreases
number of system calls and thus system load.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 15 Jul 2021 14:22:00 +0300 |
parents | 56923e8e01a5 |
children |
comparison
equal
deleted
inserted
replaced
8810:2dfd313f22f2 | 8811:bb5152ed045b |
---|---|
101 | 101 |
102 #if (NGX_HAVE_CAPABILITIES) | 102 #if (NGX_HAVE_CAPABILITIES) |
103 #include <linux/capability.h> | 103 #include <linux/capability.h> |
104 #endif | 104 #endif |
105 | 105 |
106 #if (NGX_HAVE_UDP_SEGMENT) | |
107 #include <netinet/udp.h> | |
108 #endif | |
109 | |
106 | 110 |
107 #define NGX_LISTEN_BACKLOG 511 | 111 #define NGX_LISTEN_BACKLOG 511 |
108 | 112 |
109 | 113 |
110 #ifndef NGX_HAVE_SO_SNDLOWAT | 114 #ifndef NGX_HAVE_SO_SNDLOWAT |