Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20010

Wildfly unexpectedly drop HTTP connection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 33.0.1.Final
    • Web (Undertow)
    • None
    • Hide

      as description

      Show
      as description
    • ---
    • ---

      Source: https://wildfly.zulipchat.com/#narrow/channel/196266-wildfly-user/topic/.E2.9C.94.20Wildfly.20unexpectedly.20drop.20connection

      We found a strange behavior of Wildfly 33 where it drop connection when `ServletInputStream` wrapped with `java.io.PushbackInputStream` (wrapped by Spring MVC) and request size > 16kB and process longer than 90 seconds.

      The strange thing is it only reproducible when all the condition satisfy.

      Steps to reproduce this issue:

      1. Use a Wildfly 33 build
      2. Deploy attached demo.war
      3. Access http://localhost:8080/demo/
      4. Click Start Sending for each test case, expecting all success but actually the last case fail

      The JSP page is just wrapping the `ServletInputStream` with `java.io.PushbackInputStream` and read the request body by `inputStream.readNBytes(request.getContentLength())` (Simulate what Spring MVC does) and `Thread.sleep(...)` to simulate the actual processing time.

      Also checked in Wildfly 34, still can be reproduced.

        1. demo.war
          1 kB
        2. demo-result.png
          demo-result.png
          63 kB

              rhn-cservice-bbaranow Bartosz Baranowski
              sammyhk Sammy Chu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: