mirror of
https://github.com/3proxy/3proxy.git
synced 2026-08-31 06:50:47 +00:00
Added -s option support for proxying with splice() for Liux
(without copying network data to userspace). Currently only for tcppm.
This commit is contained in:
parent
945c30c5ee
commit
6696b35d74
6 changed files with 236 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ void * tcppmchild(struct clientparam* param) {
|
|||
param->operation = CONNECT;
|
||||
res = (*param->srv->authfunc)(param);
|
||||
if(res) {RETURN(res);}
|
||||
RETURN (sockmap(param, conf.timeouts[CONNECTION_L]));
|
||||
RETURN (mapsocket(param, conf.timeouts[CONNECTION_L]));
|
||||
CLEANRET:
|
||||
|
||||
(*param->srv->logfunc)(param, NULL);
|
||||
|
|
@ -34,7 +34,7 @@ struct proxydef childdef = {
|
|||
0,
|
||||
0,
|
||||
S_TCPPM,
|
||||
""
|
||||
" -s use splice() (Fast proxying but no filtering)\n"
|
||||
};
|
||||
#include "proxymain.c"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue