[Mono-bugs] [Bug 80700][Nor] New - FileWebRequest: FileStream not closed after exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 1 19:24:50 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen at pandora.be.


--- shadow/80700	2007-02-01 19:24:50.000000000 -0500
+++ shadow/80700.tmp.12347	2007-02-01 19:24:50.000000000 -0500
@@ -0,0 +1,31 @@
+Bug#: 80700
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: FileWebRequest: FileStream not closed after exception
+When the request stream is opened asynchronously to write to the file and 
+GetResponse is invoked, then this results in a WebException.
+On Windows, this appears to keep the FileStream that was opened for 
+reading the file open, and there is no means to close the stream (since 
+the responsestream cannot be obtained).
+I've attached a small repro which, as I've said, works fine on Linux. But 
+this might mean we do not prevent deletion of a file which is still opened 
+by a FileStream (with FileShare.Read).
+This issue is causing quite some test failures in FileWebRequestTest on 

More information about the mono-bugs mailing list