Replies: 1 comment
-
Not sure what you are referring to as "bootstraping" here, but connection closure during TLS handshake is totally expected. Some peers may close connection if the TLS packets are malformed as an example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, we have been running in a problem while using Vertx's HttpClient which uses Netty. Our application makes requests to a few hosts, and it slowly started to throw
javax.net.ssl.SSLHandshakeException
:The above problem was happening for a single host, and only a part of the requests sent against the affected host suffered from this problem.
We think that the part where only a portion of traffic was impacted can be explained as successful requests were reusing existing connections and the failing requests were the ones which were opening new ones. But we do not have an explanation for the part where only this host was affected, as we had multiple instances running our application and this behaviour was happening only on a single one of them.
The problem was resolved by a simple restart of the instance which was manifesting the problem.
After some digging, we observed that the
SSLHandshakeException
is thrown by Vertx, but in response to an error thrown by Nettyjava.nio.channels.ClosedChannelException
:netty/handler/src/main/java/io/netty/handler/ssl/SslHandler.java
Line 1064 in d6f029c
channelInactive
method in the SSLHandler.Our question is how can a channel be closed when it is just bootstraping? We would like to understand in which conditions this can happen, so that we can investigate further / fix the problem. (I posted also the complete stacktrace at the end) Thanks!
Netty version
Netty: 4.1.67.Final
Vertx: 4.1.3
JVM version (e.g.
java -version
)openjdk version "11.0.9.1" 2020-11-04 LTS
OpenJDK Runtime Environment Zulu11.43+56-SA (build 11.0.9.1+1-LTS)
OpenJDK 64-Bit Server VM Zulu11.43+56-SA (build 11.0.9.1+1-LTS, mixed mode)
OS version (e.g.
uname -a
)Linux 5.4.92-flatcar x86_64 Linux (Docker image)
Stacktrace
Beta Was this translation helpful? Give feedback.
All reactions