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

Undertow read/write timeout should not apply to WebSockets or SSE

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 28.0.1.Final
    • Web (Undertow)
    • None

    Description

      https://issues.redhat.com/browse/WFLY-14980 changed Undertow's default read/write timeouts to 90 seconds. This causes WebSockets to get disconnected after 90 seconds if both sides are not sending messages. It probably also breaks server-sent event streams since the client can't send anything after the initial request, though I have not tested that.

      WebSockets and SSE streams should therefore be exempted from read/write timeouts, or at least have independent timeout settings.

      Workaround: set read-timeout and write-timeout to 0 on the http(s)-listener in the Undertow subsystem. This restores the old behavior.

      Attachments

        Issue Links

          Activity

            People

              rhn-cservice-bbaranow Bartosz Baranowski
              rdicroce Richard DiCroce (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: