mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
connlim: a connection's slot given back once
releaseparam() gave the connection limits' slot back without clearing param->connlim: a second call, made on the event loops' end of a relayed client, gave it back again, letting one more connection in for each such end while another held its slot, or, with no connlimconf, followed param->srv, cleared by the first call. It is cleared now. A UDP session taken over by the new service on a reload gave its slot back but kept connlim set, so the new service's authorization did not count it, and its end gave it back a second time. It is counted again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e3ef7bb54a
commit
bd4db18413
2 files changed
+4
No files matched your search
@@ -433,7 +433,9 @@ static void udpadopt(struct udpstate *st){
|
||||
if(param->filters[param->nfilters].filter->filter_clear)
|
||||
(*param->filters[param->nfilters].filter->filter_clear)(param->filters[param->nfilters].data);
|
||||
}
|
||||
/* counted again by the new service's authorization */
|
||||
if(param->connlim) stopconnlims(param);
|
||||
param->connlim = 0;
|
||||
param->bandlimfunc = NULL;
|
||||
param->bandlims[0] = param->bandlimsout[0] = NULL;
|
||||
param->trafcountfunc = NULL;
|
||||
|
||||
Reference in new issue
Block a user