[Mono-bugs] [Bug 56669][Wis] New - WebClient connection delays and differences
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 7 Apr 2004 17:39:15 -0400 (EDT)
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 krisolav@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=56669
--- shadow/56669 2004-04-07 17:39:15.000000000 -0400
+++ shadow/56669.tmp.853 2004-04-07 17:39:15.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 56669
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Debian Woody
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: krisolav@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: WebClient connection delays and differences
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+The WebClient hangs or times out when a non existent host is given or an
+invalid port is given. Under Windows, I see snappy responses with the
+NameResolutionFailure or ConnectFailure status.
+
+Steps to reproduce the problem:
+1. Running this code:
+ try
+ {
+ WebClient client = new WebClient();
+ using (Stream s = client.OpenRead(args[0]))
+ {
+ System.Console.WriteLine("Opened " + args[0] + " for reading");
+ }
+ } catch (WebException e) {
+ Console.Out.WriteLine("error, " + e.Message);
+ Console.Out.WriteLine("status " + e.Status);
+ } catch (Exception e) {
+ Console.Out.WriteLine("error, " + e.Message);
+ }
+
+2. Pass an invalid port or host name:
+ connect.exe http://localhost:90000/
+
+
+Actual Results:
+Under Mono: long delay, then:
+ error, The request timed out
+ status Timeout
+
+Expected Results:
+Under Windows: quick response with:
+> connect.exe http://afijfai/
+error, The underlying connection was closed: The remote name could not be
+resolved.
+status NameResolutionFailure
+
+> connect.exe http://localhost:90000/
+error, The underlying connection was closed: Unable to connect to the
+remote server.
+status ConnectFailure
+
+How often does this happen?
+Every time
+
+Additional Information:
+This seems to work fine under Mono 0.30.1. It doesn't seem to work with
+Mono 0.31