forked from CZ-NIC/knot-resolver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-6.0.8' into 'master'
Release 6.0.8 See merge request knot/knot-resolver!1572
- Loading branch information
Showing
21 changed files
with
271 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. SPDX-License-Identifier: GPL-3.0-or-later | ||
Buffering tweaks | ||
---------------- | ||
|
||
We (can) set various server-side socket options that affect buffering. | ||
The values are stored in C structures without real Lua bindings, | ||
so setting them is a bit long. | ||
|
||
.. py:data:: (require 'ffi').C.the_worker.engine.net.tcp.user_timeout | ||
On TCP-based server-side sockets we set ``TCP_USER_TIMEOUT`` option if available (~Linux). | ||
We use default 1000, i.e. one second. For details see the definition in ``man tcp.7``. | ||
|
||
.. py:data:: (require 'ffi').C.the_worker.engine.net.listen_tcp_buflens.snd | ||
.. py:data:: (require 'ffi').C.the_worker.engine.net.listen_tcp_buflens.rcv | ||
.. py:data:: (require 'ffi').C.the_worker.engine.net.listen_udp_buflens.snd | ||
.. py:data:: (require 'ffi').C.the_worker.engine.net.listen_udp_buflens.rcv | ||
If overridden to nonzero, these variables instruct the OS to modify kernel-space buffers | ||
for server-side sockets. We split the setting for UDP vs. TCP and sending vs. receiving. | ||
|
||
For details see ``SO_SNDBUF`` and ``SO_RCVBUF`` in ``man socket.7``. | ||
There is no user-space buffering beyond immediate manipulation, only the OS keeps some. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.