GitHub user edoardocomar opened a pull request: https://github.com/apache/kafka/pull/1934
KAFKA-4206 Improve handling of invalid credentials to mitigate DOS issue Delay closing channels for connections where a SALException has been thrown. This PR is a proof of concept and would like to stimulate feedback. This same approach has been used successfully in IBM MessageHub and **proved** capable of reducing dramatically the impact of SSL connections with wrong SASL credentials. Without this patch, a lot of cpu time is dedicated to SSL handshakes, many network threads are busy and the overall latencies suffer for already authenticated clients. this PR has been codeveloped with @mimaison You can merge this pull request into a Git repository by running: $ git pull https://github.com/edoardocomar/kafka KAFKA-4206 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1934.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1934 ---- commit ee21cc5e09a4f8cd4fbd42689d85907f16ee204a Author: Edoardo Comar <eco...@uk.ibm.com> Date: 2016-09-29T16:16:40Z KAFKA-4206 Improve handling of invalid credentials to mitigate DOS issue Delay closing channels for connections where a SALException has been thrown ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---