Async HttpWebRequest + AutomaticDecompression Stack Overflow Exception

时间:2017-04-12 18:09:51

标签: c# multithreading httpwebrequest gzipstream

我正在对传统网络服务(asmx)进行故障排除,以验证合作伙伴网站上的价格。我们最近打开了HttpWebRequest.AutomaticDecompression标志(DecompressionMethods.Deflate | DecompressionMethods.GZip),希望能够加快某些大型(650K +)页面合作伙伴的响应速度。代码是旧的和专有的,因此很难发布示例,因此我将尝试提供一些实现亮点:

  • 在4.5应用程序池中运行的旧版.NET 3.5 ASMX Web服务(允许TLS 1.2)
  • 每个请求(可能)产生多个工作线程;每个合作伙伴都要检查一次。
  • 工作线程使用自动解压缩创建HttpWebRequest,并使用异步方法等待合作伙伴响应:

    IAsyncResult r =(IAsyncResult)wreq.BeginGetResponse(new AsyncCallback(RespCallback),rs);

由于进入我们的测试环境,结果是获得了一些成功的响应,然后是应用程序池中的硬崩溃。迷你转储显示由处理压缩流引起的堆栈溢出(显然):

System.dll!System.IO.Compression.OutputWindow.CopyTo(byte[] output, int offset, int length) Unknown
System.dll!System.IO.Compression.Inflater.Inflate(byte[] bytes, int offset, int length) Unknown
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown

... many more frames ...

PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)    Unknown
System.dll!System.IO.Compression.GZipStream.BeginRead(byte[] array, int offset, int count, System.AsyncCallback asyncCallback, object asyncState)   Unknown
System.dll!System.Net.GZipWrapperStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
PriceSvc.dll!ns.Price.ClientGetAsync.ReadCallBack(System.IAsyncResult asyncResult) Line 699 C#
System.dll!System.IO.Compression.DeflateStream.ReadCallback(System.IAsyncResult baseStreamResult)   Unknown
System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) Unknown
System.dll!System.Net.ContextAwareResult.CaptureOrComplete(ref System.Threading.ExecutionContext cachedContext, bool returnContext) Unknown
System.dll!System.Net.ContextAwareResult.FinishPostingAsyncOp(ref System.Net.CallbackClosure closure)   Unknown
System.dll!System.Net.Sockets.Socket.BeginReceive(byte[] buffer, int offset, int size, System.Net.Sockets.SocketFlags socketFlags, out System.Net.Sockets.SocketError errorCode, System.AsyncCallback callback, object state)   Unknown
System.dll!System.Net.Sockets.NetworkStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
System.dll!System.Net.PooledStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state)  Unknown
System.dll!System.Net.ConnectStream.BeginReadWithoutValidation(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state)    Unknown
System.dll!System.Net.ConnectStream.BeginRead(byte[] buffer, int offset, int size, System.AsyncCallback callback, object state) Unknown
System.dll!System.IO.Compression.DeflateStream.ReadCallback(System.IAsyncResult baseStreamResult)   Unknown
System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken) Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)   Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)   Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
System.dll!System.Net.ContextAwareResult.Complete(System.IntPtr userToken)  Unknown
System.dll!System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(uint errorCode, uint numBytes, System.Threading.NativeOverlapped* nativeOverlapped)  Unknown
mscorlib.dll!System.Threading._IOCompletionCallback.PerformIOCompletionCallback(uint errorCode, uint numBytes, System.Threading.NativeOverlapped* pOVERLAP) Unknown
[Native to Managed Transition]  

我最初的问题:

  1. 在4.5应用程序池中运行3.5个应用程序是否存在固有问题?使用VS2008进行3.5运行时调试时,此问题不会重现。
  2. 这是一个已知问题的症状(解压缩非压缩数据或长度不匹配吗?)...看到BeginReadWithoutValidation不会激发信心。
  3. 我意识到这很模糊,所以请让我知道我可以添加哪些细节。

0 个答案:

没有答案