https://bz.apache.org/bugzilla/show_bug.cgi?id=58608

            Bug ID: 58608
           Summary: Issue with IIS7+ buffered response
           Product: Tomcat Connectors
           Version: 1.2.41
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: isapi
          Assignee: dev@tomcat.apache.org
          Reporter: stanc...@hotmail.com

We have run into an issue with Tomcat Connector and IIS7+. The request to
Tomcat routed via the Connector contains a number of batch requests that
require batch responses which are then processed as they arrive by the client.
IIS buffers the HTTP response until the buffer is full or the response is
fulfilled. This is described by Microsoft in the following KB article [1].
While IIS sits and buffers the response our client loses interactivity and just
sits idle waiting for the whole result to arrive. The issue is also exacerbated
by dealing with large batch responses (think of a multiple files sent back as
part of the response) where the client decides the connection is dead and
closes the connection.

If we call 

lpEcb->ServerSupportFunction(lpEcb->ConnID, HSE_REQ_SET_FLUSH_FLAG, (LPVOID)
TRUE, NULL, NULL);

In "DWORD WINAPI HttpExtensionProc(LPEXTENSION_CONTROL_BLOCK lpEcb)" it fixes
the issue.

I don't have a patch to attach (though if encouraged I can look into getting
one) but I propose to introduce a registry setting that controls this flag. The
default value of it can be debated but at least it will give the ability to
work around the problems with use case described above.


[1] https://support.microsoft.com/en-us/kb/946086

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to