gpt4 book ai didi

.net - Azure 服务总线主题中的基础 IOException

转载 作者:行者123 更新时间:2023-12-03 04:35:01 24 4
gpt4 key购买 nike

我们正在应用程序中积极使用 Azure 服务总线主题。最近,我们的一些主题开始出现奇怪的 IOException:

Microsoft.ServiceBus.Messaging.MessagingException The underlying connection was closed: An       unexpected error occurred on a send. TAsyncResult End[TAsyncResult](System.IAsyncResult) 
Server stack trace:


Exception rethrown at [0]:
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.NamespaceManager.OnEndTopicExists(IAsyncResult result)
at Microsoft.ServiceBus.NamespaceManager.TopicExists(String path)
at XXX.Core.Logic.Services.Bus.Impl.ServiceBusServiceBase.EnsureTopicExists(String topic)
at XXX.Core.Logic.Services.Bus.Impl.ServiceBusSenderServiceImpl.SendBrokeredMessage(Object state)
________________________________________
System.Net.WebException The underlying connection was closed: An unexpected error occurred on a send. System.Net.WebResponse EndGetResponse(System.IAsyncResult) at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.b__2d(GetAsyncResult`1 thisPtr, IAsyncResult r)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
________________________________________
System.IO.IOException Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Void EndWrite(System.IAsyncResult) at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
________________________________________
System.Net.Sockets.SocketException An existing connection was forcibly closed by the remote host Int32 EndRead(System.IAsyncResult) at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)

对于某些主题,此问题会不时出现,但对于某些主题,它是永久性的。相同的代码用于整个应用程序的所有主题。我们尝试了不同的方法来解决这个问题 - 主题重命名、不同的代码更改,但没有成功。

什么会导致此类问题?有人曾经有过这样的东西吗?

最佳答案

幸运的是,我们在项目中发现了与此相关的问题。问题出在我们在代码中应用的显式 SSLv3。 Azure 在服务总线服务上停用 SSLv3 后,我们的代码被破坏。

这里有一个很好的教训:永远不要在项目范围内使用显式协议(protocol)。

关于.net - Azure 服务总线主题中的基础 IOException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26999411/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com