mirror of
https://github.com/3proxy/3proxy.git
synced 2026-10-16 00:25:48 +08:00
Enable auto mode splice by default
Some checks are pending
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Waiting to run
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Waiting to run
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Waiting to run
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Waiting to run
Some checks are pending
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Waiting to run
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Waiting to run
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Waiting to run
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Waiting to run
This commit is contained in:
parent
bdee95c7e0
commit
7a22821b58
@ -208,12 +208,12 @@ it pays: a body of known length if at least 16K of it is left to read, a stream
|
|||||||
once it carries large reads, back to copying when they turn small. \fB-s1\fR always
|
once it carries large reads, back to copying when they turn small. \fB-s1\fR always
|
||||||
splices what the server sends to the client (downloads), \fB-s2\fR what the client
|
splices what the server sends to the client (downloads), \fB-s2\fR what the client
|
||||||
sends (uploads), \fB-s3\fR both; adding 4 (\fB-s5\fR, \fB-s6\fR, \fB-s7\fR, the last the same as
|
sends (uploads), \fB-s3\fR both; adding 4 (\fB-s5\fR, \fB-s6\fR, \fB-s7\fR, the last the same as
|
||||||
\fB-s\fR) splices those directions only where it pays. \fB-s0\fR, the default, turns it
|
\fB-s\fR, and the default) splices those directions only where it pays. \fB-s0\fR turns it
|
||||||
off. splice() suits large transfers: they go faster and use less CPU; small
|
off. splice() suits large transfers: they go faster and use less CPU; small
|
||||||
requests go slower with it. A spliced direction needs a pipe (two file
|
requests go slower with it. A spliced direction needs a pipe (two file
|
||||||
descriptors), made when first needed and kept for the connection, and more
|
descriptors), made when first needed and kept for the connection, and more
|
||||||
kernel memory; data filters are not applied to spliced data. Available in builds
|
kernel memory. A service with data filters does not splice, so that the filters
|
||||||
with WITHSPLICE, the default on Linux.
|
see all of the data. Available in builds with WITHSPLICE, the default on Linux.
|
||||||
.br
|
.br
|
||||||
.B -C
|
.B -C
|
||||||
(for TCP services) a connection closed by any of the sides terminates the
|
(for TCP services) a connection closed by any of the sides terminates the
|
||||||
@ -1458,7 +1458,7 @@ as
|
|||||||
data filtering will be performed through filtering plugins to avoid data
|
data filtering will be performed through filtering plugins to avoid data
|
||||||
corruption and/or Content-Length changing. A body up to this size is read
|
corruption and/or Content-Length changing. A body up to this size is read
|
||||||
whole into memory and filtered at once. 0 removes the limit, but then a body
|
whole into memory and filtered at once. 0 removes the limit, but then a body
|
||||||
is only filtered whole if it fits in the connection's 32K buffer.
|
is only filtered whole if it fits in the connection's 16K buffer.
|
||||||
Default is 1MB (1048576).
|
Default is 1MB (1048576).
|
||||||
|
|
||||||
.SH SSL/TLS SUPPORT
|
.SH SSL/TLS SUPPORT
|
||||||
|
|||||||
@ -434,8 +434,8 @@ static int srvprepare(struct srvstart *s, int argc, char **argv){
|
|||||||
#endif
|
#endif
|
||||||
#ifdef WITHSPLICE
|
#ifdef WITHSPLICE
|
||||||
" -s[N] Use splice(): -s1 server to client, -s2 client to server, -s3 both\n"
|
" -s[N] Use splice(): -s1 server to client, -s2 client to server, -s3 both\n"
|
||||||
" directions; -s (-s7) both, -s5 or -s6 one, only where it pays (large\n"
|
" directions; -s (-s7, the default) both, -s5 or -s6 one, only where it\n"
|
||||||
" transfers) - no filtering for data, off by default\n"
|
" pays (large transfers); -s0 never. Not with data filters\n"
|
||||||
" -C connection closed by any of the sides terminates the session, by default\n"
|
" -C connection closed by any of the sides terminates the session, by default\n"
|
||||||
" the session is kept until both sides close it (TCP half-close)\n"
|
" the session is kept until both sides close it (TCP half-close)\n"
|
||||||
" -U(0-3) (for socks) what to do when the destination changes within an UDP\n"
|
" -U(0-3) (for socks) what to do when the destination changes within an UDP\n"
|
||||||
@ -446,7 +446,7 @@ static int srvprepare(struct srvstart *s, int argc, char **argv){
|
|||||||
" -fFORMAT logging format (see documentation)\n"
|
" -fFORMAT logging format (see documentation)\n"
|
||||||
" -l log to stderr\n"
|
" -l log to stderr\n"
|
||||||
" -lFILENAME log to FILENAME\n"
|
" -lFILENAME log to FILENAME\n"
|
||||||
" -b(BUFSIZE) size of network buffer, at most and by default 32768\n"
|
" -b(BUFSIZE) size of network buffer, at most and by default 16384\n"
|
||||||
" -S(STACKSIZE) value to add to default client thread stack size\n"
|
" -S(STACKSIZE) value to add to default client thread stack size\n"
|
||||||
" -t be silent (do not log service start/stop)\n"
|
" -t be silent (do not log service start/stop)\n"
|
||||||
"\n"
|
"\n"
|
||||||
@ -1490,7 +1490,8 @@ void srvinit(struct srvparam * srv, struct clientparam *param){
|
|||||||
srv->i_nsfd = srv->o_nsfd = -1;
|
srv->i_nsfd = srv->o_nsfd = -1;
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITHSPLICE
|
#ifdef WITHSPLICE
|
||||||
srv->usesplice = 0;
|
/* where it pays: large transfers, -s0 to never */
|
||||||
|
srv->usesplice = SPLICE_DOWNLOAD|SPLICE_UPLOAD|SPLICE_AUTO;
|
||||||
#endif
|
#endif
|
||||||
srv->halfclose = 1;
|
srv->halfclose = 1;
|
||||||
srv->udpauth = 3;
|
srv->udpauth = 3;
|
||||||
|
|||||||
@ -199,7 +199,7 @@ int
|
|||||||
|
|
||||||
#define MAX_HASH_SIZE (64)
|
#define MAX_HASH_SIZE (64)
|
||||||
#define UDPBUFSIZE 16384
|
#define UDPBUFSIZE 16384
|
||||||
#define CLIENTBUFSIZE 32768
|
#define CLIENTBUFSIZE (16384 + 64)
|
||||||
#define CLIENTTMPBUFSIZE 8192
|
#define CLIENTTMPBUFSIZE 8192
|
||||||
#define HOSTNAMELEN 256
|
#define HOSTNAMELEN 256
|
||||||
#define USERNAMELEN 128
|
#define USERNAMELEN 128
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user