auth/factotum: bound the number of srv processes to 16, error the 9p rpc when it is over limit
This commit is contained in:
parent
b728f50a79
commit
f3feafc476
1 changed files with 4 additions and 0 deletions
|
@ -491,6 +491,10 @@ fsrpcio(Req *r)
|
|||
|
||||
fss = r->fid->aux;
|
||||
srv = r->srv;
|
||||
if(srv->sref.ref == 1 && srv->rref.ref > 16){
|
||||
respond(r, "too much activity");
|
||||
return;
|
||||
}
|
||||
srvrelease(srv);
|
||||
qlock(fss);
|
||||
if(r->ifcall.type == Tread)
|
||||
|
|
Loading…
Reference in a new issue