[Mono-bugs] [Bug 433371] New: HttpConnection ignores Keep-Alive for GETs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 8 05:21:03 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=433371


           Summary: HttpConnection ignores Keep-Alive for GETs
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: petr.hubeny at mliven.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=244207)
 --> (https://bugzilla.novell.com/attachment.cgi?id=244207)
Test Case

Description of Problem:
Using HTTP/1.1 client to GET from an HttpListener doesn't re-use the connection
because the server closes the connection.

Steps to reproduce the problem:
1. Compile the test case: gmcs KeepAliveTest.cs
2. Run the test case: mono KeepAliveTest.exe

Actual Results:

Request from 127.0.0.1:1234
The response
Request from 127.0.0.1:1235
The response
Request from 127.0.0.1:1236
The response
Request from 127.0.0.1:1237
The response
Request from 127.0.0.1:1238
The response

Expected Results (the port number is random, but should stay the same during
the run):

Request from 127.0.0.1:1234
The response
Request from 127.0.0.1:1234
The response
Request from 127.0.0.1:1234
The response
Request from 127.0.0.1:1234
The response
Request from 127.0.0.1:1234
The response

How often does this happen? Every time.


Additional Information:

Apparently the HttpConnection is willing to keep the connection open only when
the request is POST and even then only if it using chunked transfer encoding. 

I've tested against Microsofts .NET and the results are as expected.


-- 
Configure bugmail: https://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