Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
Hello!
I have a MAUI app with the NetCoreServer library and the SslClient implementation.
In development it works correctly, but in release mode the app connects to the server, but the rest of the processes are no longer performed. A few seconds later, the application crashes because in the SslClient.cs, in line 361_sslStream.ShutdownAsync().Wait(); the _sslStream is null.
Next, in the catch, doing _sslStream.Dispose(); closes the application because _sslStream is still null and the exception is not handled.
But I insist, in debug mode it works correctly and I don't have different configurations for debug or release. The server certificate is self-signed but it is the same for debug and release, so I don't think this is the problem.
Does anyone know where the error can be?
Hello! I have a MAUI app with the NetCoreServer library and the SslClient implementation. In development it works correctly, but in release mode the app connects to the server, but the rest of the processes are no longer performed. A few seconds later, the application crashes because in the
SslClient.cs
, in line 361_sslStream.ShutdownAsync().Wait();
the _sslStream is null. Next, in the catch, doing_sslStream.Dispose();
closes the application because _sslStream is still null and the exception is not handled.But I insist, in debug mode it works correctly and I don't have different configurations for debug or release. The server certificate is self-signed but it is the same for debug and release, so I don't think this is the problem. Does anyone know where the error can be?
Thanks a lot!