weixin_39590868
2021-01-11 12:34SslStream.AuthenticateAsClient hangs forever on linux-arm
There seems to be an issue with SslStream on arm-linux platform i have tried publish with both netcore 2.2 and the .net core 3.0 preview 6, same result.
c#
private string Connect() {
Console.WriteLine("Establing TCP Connection.");
_tcpc = new TcpClient(_server, _port);
_ssl = new SslStream(_tcpc.GetStream(), false);
Console.WriteLine("SSL Handshake trying to validate certificate");
System.Net.ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;
try
{
_ssl.AuthenticateAsClientAsync(_server).Wait();
}
catch (AuthenticationException e) {
Console.WriteLine("Exception: {0}", e.Message);
}
//
//Reset State
_lastReqPrefix = null;
_reqCount = 1;
//
return ReadServerGreeting();
}
The call to _ssl.AuthenticateAsClientAsync(_server).Wait(); just hangs forever, no exception is thrown.
I'm trying to run this on Raspbian GNU/Linux 9
该提问来源于开源项目:dotnet/runtime
- 点赞
- 回答
- 收藏
- 复制链接分享
18条回答
为你推荐
- 从接收方关闭通道:从多个goroutine访问sync.Mutex时出现死锁
- channel
- mutex
- 2个回答
- 如何在不创建实际网络连接的情况下测试依赖net.Conn的代码?
- unit-testing
- 2个回答
- 测试包含锁定的功能时,Go应用程序挂起
- unit-testing
- 1个回答
- 如何遍历go.Tick频道?
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 2个回答
- 立即调用Shutdown时,http.Server Serve方法挂起
- server
- http
- goroutine
- 1个回答
换一换