Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4409

Server processing request isn't stopped immediately but waits for request processing to finish

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • 7.0.0.ER5, 7.0.0.CR2, 7.1.0.DR4, 7.1.0.DR6, 7.1.0.DR7
    • IO, Management, Server, Undertow
    • None

      When stopping server which is processing request, it terminates the connection from the client but doesn't stop the request processing as such.

      After debugging and searching when the issue appeared I've found out that the issue was introduced with this commit: https://github.com/wildfly/wildfly-core/commit/7304c019705c5f7ec0378e1c51750432591f73d2

      Steps to reproduce:
      1) start EAP server with deployed app from attachment
      2) create request to long running application: curl -i http://127.0.0.1:8080/long-running-servlet/HeavyProcessing?duration=25000
      3) stop server (you can do it even gracefully) using ./jboss-cli.sh -c ":shutdown(timeout=1)"

      See that server is stopped after 25 seconds since request from step 2 was issued, as that is duration of the request processing requested by param duration, instead of being terminated after 1 second.

            bstansbe@redhat.com Brian Stansberry
            rhatlapa@redhat.com Radim Hatlapatka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified