You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After StanConnectRequestTimeoutException is thrown client is in invalid state with resources hanging in the void. This prevents application from closing gracefully.
class Program
{
static void Main(string[] args)
{
TestTimeout();
}
private static void TestTimeout()
{
var options = StanOptions.GetDefaultOptions();
options.ConnectTimeout = 1;
try
{
new StanConnectionFactory().CreateConnection("test-cluster", "test", options);
}
catch (StanConnectRequestTimeoutException)
{
Console.WriteLine("Timeout");
}
}
}
After executing this code application stays open. My machine runs Windows 10 64-bit with nats-streaming-server 0.10.2.
After
StanConnectRequestTimeoutException
is thrown client is in invalid state with resources hanging in the void. This prevents application from closing gracefully.After executing this code application stays open. My machine runs Windows 10 64-bit with nats-streaming-server 0.10.2.
Originally filed as nats-io/nats.net.v1#225 by @mabzd
The text was updated successfully, but these errors were encountered: