Bug 1585 - System.Net.WebConnectionStream.Read blocks indefinitely occasionally, possible race condition
Summary: System.Net.WebConnectionStream.Read blocks indefinitely occasionally, possibl...
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 2.10.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2011-10-19 14:08 UTC by Tom Philpot
Modified: 2013-12-16 14:00 UTC (History)
4 users (show)

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

Test case which can reproduce the race condition. (1.23 KB, application/octet-stream)
2011-10-19 14:08 UTC, Tom Philpot

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:

Description Tom Philpot 2011-10-19 14:08:54 UTC
Created attachment 723 [details]
Test case which can reproduce the race condition.

This bug was reported in Novell Bugzilla here: https://bugzilla.novell.com/show_bug.cgi?id=675362

I also posted to the Mono-devel mailing list a similar report with test case and a possible revision in which the problem began to appear with a test case. The Novell bug was reported on Linux, I've experienced it on Mac and Windows.


The original attachment is included here as well as DownloadTest.cs
Comment 1 Tom Philpot 2011-10-19 14:22:50 UTC
We've started to notice issues with another app we have (built on Mono 2.10.1 as well) when uploading files which caused me to report the issue here.
Comment 2 Gonzalo Paniagua Javier 2011-10-20 21:16:45 UTC
There have been multiple fixes to issues in the threadpool that could affect this code. You should try this with the latest release in the 2.10.x series  (2.10.6)
Comment 3 Rodrigo Kumpera 2013-12-16 14:00:43 UTC
Closing this bug since there has been no response in 2 years.