-
Notifications
You must be signed in to change notification settings - Fork 584
TLS handshake hangs with NIO and TLS 1.3 #715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
acogoluegnes
added a commit
that referenced
this issue
Nov 5, 2021
The unwrapping does not work the same way between TLS 1.2 and 1.3. This commit makes the unwrapping more reliable by getting the number of bytes consumed in the unwrapping and then set the position of the reading ByteBuffer accordingly to the number of bytes. With TLS 1.3, the unwrapping seems to read the whole content of the buffer and to extract only the first record, so the rewinding is necessary. The commit also adds some debug logging, adds tests on TLS 1.2 and 1.3, and re-arranges the TLS test (add utility class). Fixes #715
acogoluegnes
added a commit
that referenced
this issue
Nov 8, 2021
TLS 1.3 has not been backported to all Java version (e.g. on 9 and 10), so this commit checks if the protocol is available before running the test. References #715
acogoluegnes
added a commit
that referenced
this issue
Nov 8, 2021
The unwrapping does not work the same way between TLS 1.2 and 1.3. This commit makes the unwrapping more reliable by getting the number of bytes consumed in the unwrapping and then set the position of the reading ByteBuffer accordingly to the number of bytes. With TLS 1.3, the unwrapping seems to read the whole content of the buffer and to extract only the first record, so the rewinding is necessary. The commit also adds some debug logging, adds tests on TLS 1.2 and 1.3, and re-arranges the TLS test (add utility class). Fixes #715 (cherry picked from commit 448d3dd) Conflicts: src/test/java/com/rabbitmq/client/test/ssl/HostnameVerification.java
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original mailing list post: https://groups.google.com/g/rabbitmq-users/c/LGlpHNx5QIQ/m/AobNKVegAAAJ
Related discussion: #712.
The text was updated successfully, but these errors were encountered: