You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/derper
Joe Tsai 0173a50bf0
cmd/derper: add a rate limiter for accepting new connection (#3908)
A large influx of new connections can bring down DERP
since it spins off a new goroutine for each connection,
where each routine may do significant amount of work
(e.g., allocating memory and crunching numbers for TLS crypto).
The momentary spike can cause the process to OOM.

This commit sets the groundwork for limiting connections,
but leaves the limit at infinite by default.

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
4 years ago
..
bootstrap_dns.go cmd/derper: add /bootstrap-dns handler 5 years ago
cert.go cmd/derper: in manual cert mode, don't discard error from VerifyHostname 4 years ago
derper.go cmd/derper: add a rate limiter for accepting new connection (#3908) 4 years ago
derper_test.go cmd/derper: refactor STUN path for testing, add serverSTUN benchmark 4 years ago
mesh.go derp: use new node key type. 4 years ago
websocket.go cmd/derper, derp/derphttp: add websocket support 4 years ago