【问题标题】:Underlying IOException in Azure Service Bus TopicsAzure 服务总线主题中的基础 IOException
【发布时间】:2014-11-18 16:41:02
【问题描述】:

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

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)

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

什么可能导致此类问题?有没有人有过这样的东西?

【问题讨论】:

    标签: .net azure servicebus


    【解决方案1】:

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

    这里的好教训:永远不要在项目范围内使用显式协议。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-25
      • 2018-10-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-05
      • 2013-10-10
      相关资源
      最近更新 更多