mirror of
https://github.com/bytedance/g3.git
synced 2026-05-05 15:31:21 +00:00
g3proxy: use batch io for udp copy
This commit is contained in:
parent
9bfaf77f51
commit
5227fa87ac
15 changed files with 566 additions and 130 deletions
|
|
@ -226,6 +226,19 @@ Set the yield out size for the internal relay task.
|
|||
|
||||
**default**: 1M, **maximum**: 256K
|
||||
|
||||
.. _conf_server_common_udp_relay_batch_size:
|
||||
|
||||
udp_relay_batch_size
|
||||
--------------------
|
||||
|
||||
**optional**, **type**: usize
|
||||
|
||||
Set the batch recvmsg / sendmsg size.
|
||||
|
||||
**default**: 8
|
||||
|
||||
.. versionadded:: 1.7.29
|
||||
|
||||
.. _conf_server_common_tcp_misc_opts:
|
||||
|
||||
tcp_misc_opts
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ The following common keys are supported:
|
|||
* :ref:`tcp_copy_yield_size <conf_server_common_tcp_copy_yield_size>`
|
||||
* :ref:`udp_relay_packet_size <conf_server_common_udp_relay_packet_size>`
|
||||
* :ref:`udp_relay_yield_size <conf_server_common_udp_relay_yield_size>`
|
||||
* :ref:`udp_relay_batch_size <conf_server_common_udp_relay_batch_size>`
|
||||
* :ref:`tcp_misc_opts <conf_server_common_tcp_misc_opts>`
|
||||
* :ref:`udp_misc_opts <conf_server_common_udp_misc_opts>`
|
||||
* :ref:`task_idle_check_duration <conf_server_common_task_idle_check_duration>`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue