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.

SSL_read failed: OpenSSL error

See original GitHub issue

Netty 4.1.9-SNAPSHOT with netty-tcnative 2.0.0.Beta6

I’ll try to provide a repro but I’m seeing the following error in our application when I upgrade to Netty 4.1.9-SNAPSHOT and netty-tcnative 2.0.0.Beta6.

From what I can tell, the SSL hanshake completes, I receive the HTTP request, I respond with ctx.writeAndFlush(FullHttpResponse), I see the response data in curl but it cuts off randomly and both ends report the following errors:

// Server: Netty w/ OpenSSL on port 8443
ReferenceCountedOpenSslEngine DEBUG: SSL_read failed: OpenSSL error: error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
// Client: curl -k https://localhost:8443
curl: (56) SSL read: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number, errno 0

An another observation is that curl seems to be a bit more stable. Some requests do succeed but Browsers (I tested Chrome and FF) on the other hand fail pretty reliably (every time). The problem goes away as soon as I switch back to Netty 4.1.8.

This resembles what we observed in the #6466 ticket (minus the Exception).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:26 (26 by maintainers)

github_iconTop GitHub Comments

1reaction
Scottmitchcommented, Mar 3, 2017

@johnou - Not in this specific case no. I plan to coordinate more with @rkapsi tomorrow and resolve this asap.

1reaction
johnoucommented, Mar 2, 2017

@rkapsi pro tip: you can drag drop images straight into the comment input.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interop+OpenSsl+SslException: SSL Read BIO failed ... - GitHub
I have an ASP.Net Core app running on OSX using Kestrel and HTTPS. private void MyListener(CancellationToken token) { var certificate = new ...
Read more >
ASP.NET Core Linux SSL - SSL Read Bio failed with ...
I'm currently developing on an asp.net core application. The application itself runs perfect under Windows using Kestrel.
Read more >
Solved: Error SSLRead failed - Esri Community
Solved: Hi, I am trying to connect survey123 to my gis portal (enterprise 10.6) but I get this error in apple iOS devices....
Read more >
SSL read error: 5 - What could be the reson?
I am using curl 7.9.8 and OpessSLL 9.6d on AIX5.1. I am trying to POST some data to a secure server. The program...
Read more >
HTTP requests fails with "SSL read: error:00000000:lib(0):func ...
I'm having a user where the HTTP requests fails via SSL. $request contains a WP_Error object: object(WP_Error)#6595 (2) { ["errors"]=> array(1) ...
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