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

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

XMLWordPrintable

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

      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.

      https://github.com/wildfly/wildfly-proposals/issues/633

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

              Created:
              Updated: