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

Servlet 3.1 ReadListener/ServletInputStreamImpl are not threadsafe

    Details

    • Steps to Reproduce:
      Hide

      Run any ReadListener implementation on a separate thread from the one which invokes onDataAvailable.

      Broken test to expose the issue here: https://github.com/undertow-io/undertow/pull/529

      Show
      Run any ReadListener implementation on a separate thread from the one which invokes onDataAvailable. Broken test to expose the issue here: https://github.com/undertow-io/undertow/pull/529

      Description

      When a Servlet 3.1 ReadListener executes outside of the IO thread, it causes hangs until the async timeout is reached in some cases, and exceptions in others.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                ckozak Carter Kozak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: