mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Add splice() support on Linux to proxy, socks, ftppt, smtpp, pop3p
usage example: proxy -s proxy -s2 -s - enable splice() for sockets mapping to avoid data to be copied to user space -s2 - enable splice() and attempt to free user space buffer ASAP
This commit is contained in:
1 parent
34876b7616
commit
d159c57e1f
6 files changed
+98
-23
No files matched your search
+2
-2
@@ -279,7 +279,7 @@ fflush(stderr);
|
||||
if(buf)myfree(buf);
|
||||
return (*param->redirectfunc)(param);
|
||||
}
|
||||
param->res = sockmap(param, conf.timeouts[CONNECTION_L]);
|
||||
param->res = mapsocket(param, conf.timeouts[CONNECTION_L]);
|
||||
break;
|
||||
case 2:
|
||||
so._listen (param->remsock, 1);
|
||||
@@ -325,7 +325,7 @@ fflush(stderr);
|
||||
socksend(param->clisock, buf, 8, conf.timeouts[STRING_S]);
|
||||
}
|
||||
|
||||
param->res = sockmap(param, conf.timeouts[CONNECTION_S]);
|
||||
param->res = mapsocket(param, conf.timeouts[CONNECTION_S]);
|
||||
break;
|
||||
case 3:
|
||||
param->sinsr = param->req;
|
||||
|
||||
Reference in new issue
Block a user