Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-518

Flush on OutputStream in StreamingOutput not flushing on AJP connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.11.Final, 1.3.0.Beta9
    • 1.3.0.Beta8
    • AJP
    • None
    • Hide
      • Configure Wildfly to use ajp and put apache/mod_jk in front of it
      • Create rest service that returns an octet stream
      • Return a StreamingOutput in the reponse
      • Make the StreamingOutput flush its OutputStream after a few bytes and wait afterwards
        => Data will not be sent to the client
      Show
      Configure Wildfly to use ajp and put apache/mod_jk in front of it Create rest service that returns an octet stream Return a StreamingOutput in the reponse Make the StreamingOutput flush its OutputStream after a few bytes and wait afterwards => Data will not be sent to the client

    Description

      When using an AJP connection to Wildfly and a StreamingOutput in the Response, flushing the StreamingOutputs OutputStream makes Wildfly send the data through the AJP connection, but not a flush package (packet of size 0) is sent.
      This causes the server upfront (e.g. apache/mod_jk) to cache the data and renders the flush useless.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            nitek_jira Claus Näveke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: