mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
Fix bandlim handling
This commit is contained in:
parent
a0413c89ef
commit
c7797a66f7
@ -355,7 +355,7 @@ log("done read from server to pipe\n");
|
|||||||
if(inserverpipe >= MAXSPLICE) TOSERVERPIPE = 0;
|
if(inserverpipe >= MAXSPLICE) TOSERVERPIPE = 0;
|
||||||
if(param->bandlimfunc) {
|
if(param->bandlimfunc) {
|
||||||
int sl1;
|
int sl1;
|
||||||
sl1 = (*param->bandlimfunc)(param, 1, res);
|
sl1 = (*param->bandlimfunc)(param, res, 0);
|
||||||
if(sl1 > sleeptime) sleeptime = sl1;
|
if(sl1 > sleeptime) sleeptime = sl1;
|
||||||
}
|
}
|
||||||
if(param->operation == UDPASSOC && param->srv->singlepacket){
|
if(param->operation == UDPASSOC && param->srv->singlepacket){
|
||||||
@ -418,7 +418,7 @@ log("done read from server to buf");
|
|||||||
param->srvinbuf += res;
|
param->srvinbuf += res;
|
||||||
if(param->bandlimfunc) {
|
if(param->bandlimfunc) {
|
||||||
int sl1;
|
int sl1;
|
||||||
sl1 = (*param->bandlimfunc)(param, 1, res);
|
sl1 = (*param->bandlimfunc)(param, res, 0);
|
||||||
if(sl1 > sleeptime) sleeptime = sl1;
|
if(sl1 > sleeptime) sleeptime = sl1;
|
||||||
}
|
}
|
||||||
if(param->srvbufsize == param->srvinbuf) TOSERVERBUF = 0;
|
if(param->srvbufsize == param->srvinbuf) TOSERVERBUF = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user