Bug 57563 - Microsoft.WindowsAzure.Storage fails to read streams over SSL via Mono.Net.Security.MobileAuthenticatedStream (PartialStream 206 responses)
Summary: Microsoft.WindowsAzure.Storage fails to read streams over SSL via Mono.Net.S...
Status: RESOLVED NORESPONSE
Alias: None
Product: Class Libraries
Classification: Mono
Component: Mono.Security ()
Version: 5.0 (2017-02)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Martin Baulig
URL:
Depends on:
Blocks:
 
Reported: 2017-06-16 17:01 UTC by Bryan Woodruff
Modified: 2018-03-13 11:07 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Bryan Woodruff 2017-06-16 17:01:33 UTC
The Azure backend responds with 206 Partial Content but the SSL read times out and closes the connection.

HTTP/1.1 206 Partial Content
Content-Length	167110
Content-Range	bytes 0-167109/167110
Accept-Ranges	bytes
Server	Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id	487b62ac-0001-004b-5ec1-e61c73000000
x-ms-version	2016-05-31
x-ms-blob-content-md5	99dXcQKBV+gYQH1nDL0R/A==
x-ms-lease-status	unlocked
x-ms-lease-state	available
x-ms-blob-type	BlockBlob
x-ms-server-encrypted	false
Date	Fri, 16 Jun 2017 16:56:53 GMT
Expires	0
Cache-Control	no-cache
Connection	Keep-alive


System.AggregateException: One or more errors occurred. ---> Microsoft.WindowsAzure.Storage.StorageException: Connection closed. ---> System.IO.IOException: Connection closed.
  at Mono.Net.Security.MobileAuthenticatedStream.EndReadOrWrite (System.IAsyncResult asyncResult, Mono.Net.Security.AsyncProtocolRequest& nestedRequest) [0x00048] in /private/tmp/source-mono-2017-02/bockbuild-2017-02/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:331 
  at Mono.Net.Security.MobileAuthenticatedStream.EndRead (System.IAsyncResult asyncResult) [0x00000] in /private/tmp/source-mono-2017-02/bockbuild-2017-02/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:278 
  at System.Net.WebConnection.EndRead (System.Net.HttpWebRequest request, System.IAsyncResult result) [0x000d4] in /private/tmp/source-mono-2017-02/bockbuild-2017-02/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/WebConnection.cs:936 
  at System.Net.WebConnectionStream.EndRead (System.IAsyncResult r) [0x000af] in /private/tmp/source-mono-2017-02/bockbuild-2017-02/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Net/WebConnectionStream.cs:424 
  at Microsoft.WindowsAzure.Storage.Core.ByteCountingStream.EndRead (System.IAsyncResult asyncResult) [0x00000] in <f5a070bd66d74ddb86f602670c2224d8>:0 
  at Microsoft.WindowsAzure.Storage.Core.Util.StreamExtensions.WriteToSync[T] (System.IO.Stream stream, System.IO.Stream toStream, System.Nullable`1[T] copyLength, System.Nullable`1[T] maxLength, System.Boolean calculateMd5, System.Boolean syncRead, Microsoft.WindowsAzure.Storage.Core.Executor.ExecutionState`1[T] executionState, Microsoft.WindowsAzure.Storage.Core.Util.StreamDescriptor streamCopyState) [0x002c6] in <f5a070bd66d74ddb86f602670c2224d8>:0 
  at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T] (Microsoft.WindowsAzure.Storage.Core.Executor.RESTCommand`1[T] cmd, Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy policy, Microsoft.WindowsAzure.Storage.OperationContext operationContext) [0x003c7] in <f5a070bd66d74ddb86f602670c2224d8>:0 
   --- End of inner exception stack trace ---

Request Information
RequestID:3298c338-0001-0044-16b8-e6f185000000
RequestDate:Fri, 16 Jun 2017 15:53:54 GMT
StatusMessage:Partial Content
<---
Comment 1 Marek Safar 2017-09-12 09:28:00 UTC
Could you provide any repro for us to reproduce the issue?

Thank you!
Comment 2 Marek Safar 2018-03-13 11:07:16 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and reopen the bug report.

Thank you!