mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
correct trafic accounting in spliced map
This commit is contained in:
parent
73438cc378
commit
12b5ad143f
@ -74,6 +74,9 @@ int splicemap(struct clientparam * param, int timeo){
|
||||
if(socksend(param->remsock, param->clibuf + param->clioffset, tosend, conf.timeouts[STRING_S]) != tosend){
|
||||
return 97;
|
||||
}
|
||||
param->nwrites++;
|
||||
param->statscli64 += tosend;
|
||||
|
||||
if(!needcontinue){
|
||||
param->clioffset += tosend;
|
||||
if(param->clioffset == param->cliinbuf) param->clioffset = param->cliinbuf = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user