[Webkit-unassigned] [Bug 17682] New: XHR setRequestHeader("connection", "close") is bogusly rejected

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 5 11:02:39 PST 2008


           Summary: XHR setRequestHeader("connection", "close") is bogusly
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: morganl.webkit at yahoo.com

XHR setRequestHeader("connection", "close") is bogusly rejected

This is used by Gmail for example to request a non-persistent connection.  This
is a standard mechanism used by web apps, and the intent is to not have the XHR
connection not count against the browser's limit on the maximum number of
persistent connections per host that it will open at any given time.

It looks like Gmail uses this for a request that does not have an immediate
response.  The server only responds to the request when it has some data to
send to the client.  As a result, the connection is open for a long time, and
therefore it does not make any sense to count it as a persistent connection.

Other browsers (FF2 at least) do not prevent the "connection: close" header
from being set.

I see that http://www.w3.org/TR/XMLHttpRequest/ recommends blocking the
"connection" request header, but I think it is a very poor recommendation.

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list