[PATCH] PATCH 15/16: NFSD: TCP: Limit number of active tcp connections to an RPC...
authorNeil Brown <neilb@cse.unsw.edu.au>
Tue, 26 Feb 2002 06:24:00 +0000 (22:24 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Tue, 26 Feb 2002 06:24:00 +0000 (22:24 -0800)
commitafdb4fa2b04a7e90e0746bc3d031a552656c7709
tree95a1e7896d322db534bf8520f2d2831f255f1c42
parent4e2f6bfe215882c3df7b2e8d6704bd28a4a9a664
[PATCH] PATCH 15/16: NFSD: TCP: Limit number of active tcp connections to an RPC service

Limit number of active tcp connections to an RPC service

If a connection comes in and that results in number of
connections being more than 5 times the number of threads,
then we close a connection.

We randomly drop with the oldest or the newest connection.

Thus if we are flooded with connection requests, some will
get in and hopefully stay long enough to service at least one request.
include/linux/sunrpc/svc.h
net/sunrpc/svcsock.c