Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly handle non handshake commands when using SniHandler
Motivation: As we can only handle handshake commands to parse SNI we should try to skip alert and change cipher spec commands a few times before we fallback to use a default SslContext. Modifications: - Use default SslContext if no application data command was received - Use default SslContext if after 4 commands we not received a handshake command - Simplify code - Eliminate multiple volatile fields - Rename SslConstants to SslUtils - Share code between SslHandler and SniHandler by moving stuff to SslUtils Result: Correct handling of non handshake commands and cleaner code.
- Loading branch information
1 parent
951bacb
commit 27118ec
Showing
4 changed files
with
273 additions
and
224 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
45 changes: 0 additions & 45 deletions
45
handler/src/main/java/io/netty/handler/ssl/SslConstants.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.