Bug 47700 - Error getting response stream(ReadDone2): Receive Failure" when retry credential three times
Summary: Error getting response stream(ReadDone2): Receive Failure" when retry credent...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Net.Http (show other bugs)
Version: 4.6.0 (C8)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2016-11-23 10:15 UTC by Matt Ward
Modified: 2017-05-15 13:16 UTC (History)
2 users (show)

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


Attachments

Description Matt Ward 2016-11-23 10:15:12 UTC
Reported on NuGet - https://github.com/NuGet/Home/issues/3762

Tested Mono 4.8.0.344 (mono-4.8.0-branch/f5fbc32 Mon Nov 14 14:10:00 EST 2016) on Mac.

To repro:

1) Clone the repo: https://github.com/zhili1208/MockServerOnMono
2) Edit MockServer/Program.cs and change Main so CredentialRetryIssue.ReproIssue is uncommented and SecrueStringIssue is commented out.

		public static void Main(string[] args)
		{
			//RedirectIssue.ReproIssue();
			CredentialRetryIssue.ReproIssue();
			//SecrueStringIssue.ReproIssue();
		}

3) Compile the solution.
4) Open a terminal in the MockServer/bin/Debug directory and run the MockServer: mono MockServer.exe

Expected result:

No output from on command line. (Windows shows no console output).

Actual result:

Exception logged:

System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error getting response stream (ReadDone2): ReceiveFailure ---> System.Exception:   at System.Net.WebConnection.HandleError (System.Net.WebExceptionStatus st, System.Exception e, System.String where) [0x00000] in <54b353f17dee4a2c97c9f919bcfe90f1>:0 
  at System.Net.WebConnection.ReadDone (System.IAsyncResult result) [0x00000] in <54b353f17dee4a2c97c9f919bcfe90f1>:0 
  at System.Net.Sockets.SocketAsyncResult+<Complete>c__AnonStorey0.<>m__0 (System.Object _) [0x00000] in <54b353f17dee4a2c97c9f919bcfe90f1>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <829ce140006e4cad9124766ee7f51179>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <829ce140006e4cad9124766ee7f51179>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <829ce140006e4cad9124766ee7f51179>:0 
  at System.Net.WebConnection.HandleError (System.Net.WebExceptionStatus st, System.Exception e, System.String where) [0x00044] in <54b353f17dee4a2c97c9f919bcfe90f1>:0 

Full callstack: https://gist.github.com/mrward/a1dbb390d0ab60cfac607123303ad76a
Comment 1 marius 2017-05-15 13:16:43 UTC
Issue also exists with 4.8.1

Note You need to log in before you can comment on or make changes to this bug.