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:
z3apa3a committed 2016-12-19 22:07:34 +03:00
1 parent 34876b7616
commit d159c57e1f
6 files changed
+98 -23

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ void * pop3pchild(struct clientparam* param) {
{RETURN(623);}
param->statscli64 += (uint64_t)(strlen((char *)param->extusername) + 7);
param->nwrites++;
RETURN (sockmap(param, 180));
RETURN (mapsocket(param, 180));
CLEANRET:
if(param->hostname&&param->extusername) {