[Mono-bugs] [Bug 597230] New: WebClient.DownloadData timeouts unexpectedly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 16 03:52:27 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=597230

http://bugzilla.novell.com/show_bug.cgi?id=597230#c0


           Summary: WebClient.DownloadData timeouts unexpectedly
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: piotr.wysocki at secpl.cs.put.poznan.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9)
Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.8

new System.Net.WebClient ().DownloadData (url) always timeouts instead of
downloading the data.


Reproducible: Always

Steps to Reproduce:
1. cat > a.cs << EOF
public class MainClass {
    public static void Main (string[] args) {
        var clt = new System.Net.WebClient ();
        clt.DownloadData ("http://www.google.com/");
        System.Console.WriteLine ("OK");
        System.Environment.Exit (0);
    }
}
EOF

2. gmcs a.cs
3. mono a.exe
Actual Results:  
[2.6.3] ~> mono --debug a.exe

** (a.exe:30342): WARNING **: Missing method .ctor in assembly
/opt/mono-2.6.3/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll, type
Mono.Security.Protocol.Tls.CertificateValidationCallback2

** (a.exe:30342): WARNING **: The class
Mono.Security.Protocol.Tls.CertificateValidationCallback2 could not be loaded,
used in System

** (a.exe:30342): WARNING **: Missing method .ctor in assembly
/opt/mono-2.6.3/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll, type
Mono.Security.Protocol.Tls.CertificateValidationCallback2

Unhandled Exception: System.Net.WebException: The request timed out
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult)
[0x0006c] in
/home/wysek/src/mono-2.6.3/mono-2.6.3/mcs/class/System/System.Net/HttpWebRequest.cs:820 
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in
/home/wysek/src/mono-2.6.3/mono-2.6.3/mcs/class/System/System.Net/HttpWebRequest.cs:825 
  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request)
[0x00000] in
/home/wysek/src/mono-2.6.3/mono-2.6.3/mcs/class/System/System.Net/WebClient.cs:1564 
  at System.Net.WebClient.DownloadDataCore (System.Uri address, System.Object
userToken) [0x0000a] in
/home/wysek/src/mono-2.6.3/mono-2.6.3/mcs/class/System/System.Net/WebClient.cs:275 


Expected Results:  
The application should output "OK". No timeout is expected if network
connection is ok (mine is).

The "Actual Results" output indicates I am using mono 2.6.3 and that is the
case.
However I have also tried mono 2.6 branch HEAD (r155611) and it fails in the
same way.

Mono 2.6.1 works ok. Mono 2.6 branch r150544 also works ok.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list