[Mono-bugs] [Bug 535102] New: Timeout in HttpWebRequest.GetResponse() due to use of method HEAD

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 28 07:50:20 EDT 2009


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


           Summary: Timeout in HttpWebRequest.GetResponse() due to use of
                    method HEAD
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: goran.krampe at msc.se
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2)
Gecko/20090809 Firefox/3.5.2 (Swiftfox)

It seems that GetResponse() has issues with method HEAD. The problem appeared
when we tried to run Divan on Mono - it works fine on .Net 3.5/VSS2008.

This bug report in CouchDB explains that content-length header returned to a
HEAD request should be identical to a GET request of same URI. I suspect that
GetResponse() does not deal correctly with this and also, not sure how it deals
with missing content-length header returned.

The program attached shows the problem as timing out instead of returning a 404
immediately.

Reproducible: Always

Steps to Reproduce:
1. gmcs Program.cs
2. mono Program.exe

Actual Results:  
Takes a long time, times out eventually.

Expected Results:  
Caused an exception fast.

-- 
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