mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-26 23:59:41 +08:00
A client's sleeps wait in sockpoll()
The bandwidth limiter between HTTP requests and httpsrv's delay slept with usleep(); they are waits of sockpoll() with no fds, to be made other than by sleeping once a client is served by an event loop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
df993b5304
commit
bfd812f0b8
2 files changed
+4
-8
No files matched your search
+1
-1
@@ -1466,7 +1466,7 @@ for(;;){
|
||||
if(st1 > sleeptime) sleeptime = st1;
|
||||
if(sleeptime > 0){
|
||||
/* if(sleeptime > 30) sleeptime = 30; */
|
||||
usleep(sleeptime * SLEEPTIME);
|
||||
sockpoll(¶m->srv->so, param->sostate, NULL, 0, sleeptime);
|
||||
}
|
||||
}
|
||||
buf[inbuf] = 0;
|
||||
|
||||
Reference in new issue
Block a user