avoid serving more than 10 tor connections at a time
authorJoey Hess <joeyh@joeyh.name>
Tue, 22 Nov 2016 02:03:29 +0000 (22:03 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 22 Nov 2016 02:03:29 +0000 (22:03 -0400)
commite053f31816b7bfbc1a915cdb4d9ada5174f0c691
treee29f04229bb1e6066c57851459b597e314dd18cb
parent2da338bb8d39b8c4a1c90ff346edd46bb2ca412e
avoid serving more than 10 tor connections at a time

Another 10 clients can be accepted and waiting their turn. After that,
start dropping connections.

This is to avoid DOS attacks..
RemoteDaemon/Transport/Tor.hs