Update 3proxy.cfg.5.html

This commit is contained in:
Vladimir Dubrovin 2026-08-01 11:15:53 +03:00
parent f668a34910
commit 05f83896bf

View File

@ -192,9 +192,16 @@ or hostname, useful in case of dynamic DNS. <b><br>
(<b>-ol</b>), connect back client (<b>-or</b>), connect back
listening (<b>-oR</b>) sockets. Options like TCP_CORK,
TCP_NODELAY, TCP_DEFER_ACCEPT, TCP_QUICKACK, TCP_TIMESTAMPS,
USE_TCP_FASTOPEN, SO_REUSEADDR, SO_REUSEPORT,
SO_PORT_SCALABILITY, SO_REUSE_UNICASTPORT, SO_KEEPALIVE,
SO_DONTROUTE may be supported depending on OS. <b><br>
TCP_FASTOPEN, SO_REUSEADDR, SO_REUSEPORT,
SO_EXCLUSIVEADDRUSE, SO_PORT_SCALABILITY,
SO_REUSE_UNICASTPORT, SO_KEEPALIVE, SO_DONTROUTE may be
supported depending on OS. SO_REUSEADDR and SO_REUSEPORT are
set on the listening socket by default on Unix. On Windows
SO_REUSEADDR is not set: it is not required to rebind a
listening port and it only lets another local process bind
the same address and port. Use SO_EXCLUSIVEADDRUSE (Windows)
on the listening socket (<b>-ol</b>) to prevent that.
<b><br>
-H</b> (for all services) Expect HAProxy PROXY protocol v1
header on incoming connection. This allows the proxy to
receive real client IP address from HAProxy or other load
@ -205,9 +212,16 @@ be sent before any protocol-specific data. <b><br>
delay GRACE_DELAY milliseconds before polling if average
polling size is below GRACE_TRAFF bytes and GRACE_NUM read
operations in a single direction are detected within 1
second. Useful to minimize polling <b>-s</b> <br>
second. Useful to minimize polling <b><br>
-s</b> <br>
(for admin) secure, allow only secure operations, currently
only traffic counters view without ability to reset. <br>
(for TCP services, Linux) enable splice(). splice() is not
built by default and is disabled even when built, because
current Linux does not implement SPLICE_F_MOVE, so no real
zero-copy takes place and the read/write path is faster for
most traffic. Rebuild with -DWITHSPLICE to make -s
available, -s0 disables it explicitly. <br>
(for dnspr) simple, do not use resolver and 3proxy cache,
always use external DNS server. <br>
(for udppm) singlepacket, expect only one packet from both
@ -762,8 +776,8 @@ service (with -s parameter). <b><br>
ha</b> send HAProxy PROXY protocol v1 header to the next
parent proxy (or to the destination if <b>ha</b> is used
alone). Place <b>ha</b> before the parent that should
receive the header; after the header is sent, negotiation
of that parent protocol continues (SOCKS, CONNECT, etc.).
receive the header; after the header is sent, negotiation of
that parent protocol continues (SOCKS, CONNECT, etc.).
Useful for passing client IP information to the parent
proxy. Example: <br>
parent 1000 ha 0.0.0.0 0 <br>
@ -1048,7 +1062,17 @@ experience 3proxy crash on request processing, try to set
some positive value. You may start with stacksize 65536 and
then find the minimal value for the service to work. If you
experience memory shortage, you can try to experiment with
negative values.</p>
negative values. <br>
With SQL logging (log &amp;ODBC_string) the value is
automatically raised to 32768 if it is smaller, because ODBC
drivers require more stack. A <b>stacksize</b> command
placed after the <b>log</b> command overrides this. <br>
The base stack size the value is added to is 49152. On
FreeBSD, NetBSD, OpenBSD and DragonFly it is 65536, because
libc functions such as vfprintf() called by syslog() use
significantly more stack there. The result is never lowered
below PTHREAD_STACK_MIN, so a large negative value can not
disable the thread stack.</p>
<h2>PLUGINS
<a name="PLUGINS"></a>