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

ReadListener onAllDataRead never called with empty POST request body

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.Beta1
    • 1.0.3.Final
    • None
    • None

      When a POST is submitted with an empty request body and non-blocking servlet 3.1 I/O is used there appears to be no way to know when all the request data has been read.

      Here's an additional test in ServletInputStreamTestCase that reproduces the issue. When run, the test hangs until the client times out because onAllDataRead never gets called:

      https://gist.github.com/bbrowning/10164920

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              bbrownin@redhat.com Ben Browning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: