jruby / jruby-openssl

JRuby's OpenSSL gem
http://www.jruby.org
Other
45 stars 80 forks source link

"read would block" when communicating with external APIs #317

Open gillesbergerp opened 3 weeks ago

gillesbergerp commented 3 weeks ago

Basic Info

Issue description

We occasionally and intermittently face Faraday::SSLErrors with the message read would block when communicating with external endpoints. Our application is deployed as an ECS on EC2 service and (so far) we were unable to reproduce the issue locally or in our staging environment.

Steps to reproduce

Unfortunately, we haven't managed to reproduce the issue locally. There are certain requests to external APIs that fail very consistently, however.

jpsikorra commented 23 hours ago

We also ran into this problem, it seems like switching switching from TLS 1.3 to TLS 1.2 mitigates the issue at least sometimes.

gillesbergerp commented 23 hours ago

@jpsikorra, when you say "sometimes", do you suggest that it doesn't occur anymore at all for some sites/endpoints (but still does for others) or that the overall rate is lower?