【发布时间】: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