ConnectTimeout does not cancel upgrade of TcpConnection to SslConnection
mtmk opened this issue · 0 comments
mtmk commented
Discussed in #335
Originally posted by joao-genebra January 16, 2024
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
of NatsOpts
is not stopping the connection upgrade, which is causing the call to ConnectAsync
to stay blocked.
We know that the connection has already been opened because we can find this log.