question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple call to exceptionCaught since 4.1.23 in case of Ssl Handshake Failure

See original GitHub issue

Expected behavior

Before release 4.1.23, there was only ONE call to exceptionCaught method when an ssl handshake failure occurs

Actual behavior

Since release 4.1.23, exceptionCaught method is called twice. Looking in the stacktrace:

  • it is called a first time, and it is related to the fireChannelRead method of the SslHandler,
  • it is called a second time, and it is related to the fireChannelInactive method of the SslHandler,

Steps to reproduce

Try to connect to netty server with a client that does not trust the server CA certificate. The client will close the session with an Alert - Certificate Unknown error. Netty will call twice the exceptionCaught method.

Minimal yet complete reproducer code (or URL to code)

Clone this repository https://github.com/asanglard/dummyNettyServer and connect with an SSL client to the server which is running on port 8282. You may use your web browser (https://127.0.0.1:8282/)

Dummy exceptionCaught will be called twice for the same channel. error on client channel 69a6a755 : javax.net.ssl.SSLException: Received fatal alert: certificate_unknown - exception class: io.netty.handler.codec.DecoderException error on client channel 69a6a755 : javax.net.ssl.SSLException: Received fatal alert: certificate_unknown - exception class: io.netty.handler.codec.DecoderException

Netty version

I tested Netty 4.1.23 and 4.1.48 (last version). The behaviour is the same with these two versions.

JVM version (e.g. java -version)

java version “1.8.0_152-ea”

OS version (e.g. uname -a)

Mac OS Catalina 19.3.0 Darwin Kernel Version 19.3.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
normanmaurercommented, Mar 26, 2020

This was fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix “SSL Handshake Failed” & "Cloudflare 525" Error
The SSL Handshake Failed error occurs when the server and browser are unable to establish a secure connection.
Read more >
SSL Handshake Failures - Baeldung
A focused tutorial on SSL handshake failures and how to fix them. ... Since the inception of SSL, many products and languages like...
Read more >
Rehash: How to Fix the SSL/TLS Handshake Failed Error
The TLS Handshake Failed error can originate from the client or the server, here's a guide for fixing the problem for both users...
Read more >
RFC 6101: The Secure Sockets Layer (SSL) Protocol Version ...
The SSL protocol provides connection security that has three basic properties: o The connection is private. Encryption is used after an initial handshake...
Read more >
SSL Handshake Failures - Bad Client Certificate | Apigee Edge
Enable trace in the Edge UI, make the API call, and reproduce the issue. In the UI trace results, navigate through each Phase...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found