|
|
|
|
|
by gridspy
239 days ago
|
|
Thread exhaustion attack 1. Start <thread_count> connections to a server 2. Hold connections open 3. Do nothing else Server 1. Incoming connection. assign a thread. 2. Wait for request <--- Attack causes us to get stuck here 3. Serve request 4. Close connection and thread / return to threadpool Solution: Use a reverse proxy to handle the incoming connections. Typical reverse proxies such as nginx use event-based polling not a per-connection thread so they are immune to this issue. |
|