[Mono-bugs] [Bug 78078][Wis] Changed - GetResponse Timeout in
WebRequest
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Apr 11 15:18:48 EDT 2006
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 robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=78078
--- shadow/78078 2006-04-11 12:48:44.000000000 -0400
+++ shadow/78078.tmp.29597 2006-04-11 15:18:48.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 78078
Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details: Fedora Core 4
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: dlacroix at erasme.org
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -86,6 +86,29 @@
Each time at the third call to req.GetResponse(). And each time you use the
given example.
Additional Information:
I am using mono 1.1.13.6.
+
+------- Additional Comments From robertj at gmx.net 2006-04-11 15:18 -------
+You have do close the WebResponse, like here:
+
+ while(true) {
+ WebRequest req =
+WebRequest.Create("http://localhost/musee/log.php");
+ WebResponse resp = req.GetResponse();
+ Console.WriteLine("Request done");
+ resp.Close ();
+
+ }
+
+Better enclose it in a using block:
+
+ WebRequest req =
+WebRequest.Create("http://localhost/musee/log.php");
+
+ using (WebResponse resp = req.GetResponse()) {
+ Console.WriteLine("Request done");
+ }
+
+
More information about the mono-bugs
mailing list