ConnectTimeout does not cancel upgrade of TcpConnection to SslConnection #335
Replies: 5 comments
-
I'm guessing the call to |
Beta Was this translation helpful? Give feedback.
-
@joao-genebra which version of the client are you using btw. We have some big changes in 2.1.0-preview.1 |
Beta Was this translation helpful? Give feedback.
-
The NATS client version we are using is 2.0.1. We would rather not use a preview version and prefer to wait for a stable version. Also, the behavior seems to be flaky and is only happening in production, so we are not able to replicate it locally. Regarding your suggestion of passing a |
Beta Was this translation helpful? Give feedback.
-
Thanks for the report @joao-genebra. it looks like a bug. Opened an issue for this #337 please follow up there. |
Beta Was this translation helpful? Give feedback.
-
@joao-genebra sorry the fix delayed a little because of an unrelated issue. fix to this issue is in 2.1.0-preview.4. it'd be great if you have the opportunity to test it. Thank you! |
Beta Was this translation helpful? Give feedback.
-
When opening a connection, after the connection has been created and before it is upgraded to ssl here, if some kind of hiccup occurs in our network, the timeout value set in
ConnectTimeout
ofNatsOpts
is not stopping the connection upgrade, which is causing the call toConnectAsync
to stay blocked.We know that the connection has already been opened because we can find this log.
Beta Was this translation helpful? Give feedback.
All reactions