-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: DoS vector in kcp accept (#469)
* fix: DoS vector in accept Previously, if a client sends a hello and nothing else, the server waits to complete the handshake before accepting other connections. This opens a very easy to exploit DoS vector. Now, the server fires a separate task for completing the handshake for each client. So if a client does not cooperate with the handshake, other clients can still be accepted * use else instead of return
- Loading branch information
Showing
1 changed file
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters