mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Relays: the size of a splice() pipe given to a service, -b,SIZE
-b, which made a service read less at once into a connection's buffer, takes the size of its pipes after a comma: -b,262144, -b8192,32768. From 4096 to 64M (MAXPIPESIZE); a pipe the system will not make so large (pipe-max-size for an unprivileged process) is not used, and the data is copied, as with -DPIPESIZE, which stays the default for a service given none. sockmap() and the callbacks' relay fill a pipe up to the service's size (SRVPIPESIZE()), and only a pipe of other than 64K costs an fcntl() as it is made. The man page tells of -b, which it did not before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
add40b1d85
commit
a6402010a4
6 files changed
+44
-21
No files matched your search
@@ -723,6 +723,7 @@ struct srvparam {
|
||||
int usesplice;
|
||||
/* the automatic mode's heuristics, -s[N]:MIN,STREAK,SMALL */
|
||||
int splicemin, splicestreak, splicesmall;
|
||||
unsigned pipesize; /* -b,SIZE: what a pipe is made to hold, 0 PIPESIZE */
|
||||
#endif
|
||||
int halfclose;
|
||||
int udpauth;
|
||||
|
||||
Reference in new issue
Block a user