mirror of
https://github.com/3proxy/3proxy.git
synced 2026-06-10 18:00:11 +08:00
Fix: unneeded poll in sockmap
This commit is contained in:
parent
bed3977575
commit
a639bcb017
@ -256,6 +256,7 @@ log("send to client from buf");
|
|||||||
}
|
}
|
||||||
if(!inserverbuf){
|
if(!inserverbuf){
|
||||||
param->srvinbuf = param->srvoffset = 0;
|
param->srvinbuf = param->srvoffset = 0;
|
||||||
|
if(fromserver) TOSERVERBUF = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
sasize = SASIZE(¶m->sincr);
|
sasize = SASIZE(¶m->sincr);
|
||||||
@ -303,6 +304,7 @@ log(logbuf);
|
|||||||
param->statscli64 += res;
|
param->statscli64 += res;
|
||||||
inclientpipe -= res;
|
inclientpipe -= res;
|
||||||
fromclient -= res;
|
fromclient -= res;
|
||||||
|
if(fromclient) TOCLIENTPIPE = 1;
|
||||||
if(param->bandlimfunc) {
|
if(param->bandlimfunc) {
|
||||||
int sl1;
|
int sl1;
|
||||||
sl1 = (*param->bandlimfunc)(param, 0, res);
|
sl1 = (*param->bandlimfunc)(param, 0, res);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user