On some servers when we call PeekBatch(TrackingContext trackingContext, Int64 fromSequenceNumber, Int32 messageCount, TimeSpan timeout) on a ServiceBus Subscription we are getting a TimeoutException. This is predictably repeatable at a specific messageCount for the servers that return the exception. The code always works fine on a Windows 8.1 development machine and an Azure WebSite, it fails in the exact same manner on 2 separate 2008 R2 servers. We can repeatedly request messageCount of 100 for the PeekBatch call on the servers that work and see approx.. .5 second roundtrip call time.
The servers that fail with a 70 second timeout always fail when the messageCount is > 58. When the messageCount is 58 on these servers the roundtrip time is < .5 second so it is not a factor of the amount of returned data. The entire content length returned for 100 records is just over 100 kilobytes. Nothing stands out in the event logs and I have no
We are using WindowsAzure.Servicebus 2.5.3
"TimeoutException : The request operation did not complete within the allotted timeout of 00:01:10. The time allotted to this operation may have been a portion of a longer timeout.
SGS.WebAPI.Support.Controllers.HomeController.PeekMessages(String topic, String subscription, Int32 count, Int64 fromSequenceNumber)\ \ SGS.WebAPI.Support.lib.AzureTopic.PeekNextMessage(String topicName, String subscriptionName, Int32 numMessages, Int64 fromSequenceNumber)\ \ Microsoft.ServiceBus.Messaging.SubscriptionClient.PeekBatch(Int64 fromSequenceNumber, Int32 messageCount)\ \ Microsoft.ServiceBus.Messaging.MessageBrowser.PeekBatch(TrackingContext trackingContext, Int64 fromSequenceNumber, Int32 messageCount, TimeSpan timeout)\ \ Microsoft.ServiceBus.Messaging.MessageBrowser.OnPeek(TrackingContext trackingContext, Int64 fromSequenceNumber, Int32 messageCount, TimeSpan timeout)\ \ Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.RunSynchronously()\ \ Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.MessageBrowser.RetryBrowserAsyncResult.<GetAsyncSteps>b__b(RetryBrowserAsyncResult thisPtr, IAsyncResult r)\ \ Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageBrowser.OnEndPeek(IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageBrowser.EndPeekCommand(IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)\ \ Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)\ \ Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<GetAsyncSteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r)\ \ Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.EndRequest(IAsyncResult result)\ \ Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)\ \ Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.RequestAsyncResult.<>c__DisplayClass17.<GetAsyncSteps>b__a(RequestAsyncResult thisPtr, IAsyncResult r)\ \ Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)\ \ Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)\ \ Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)\ \ Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.<GetAsyncSteps>b__4(RequestAsyncResult thisPtr, IAsyncResult r)\ \ Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.EndRequest(IAsyncResult result)\ \ Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)\