Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-836

Websockets connection is terminated when message size is larger than 65536

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0, 0.11.0
    • None
    • Server
    • None

    Description

      In some cases, or e.g. in Zeppelin with large demo Notebooks, Knox will abruptly close connection with error:

      [exec] org.eclipse.jetty.websocket.api.MessageTooLargeException: Text message size [1313822] exceeds maximum size [65536]
      [exec] at org.eclipse.jetty.websocket.api.WebSocketPolicy.assertValidTextMessageSize(WebSocketPolicy.java:140)
      [exec] at org.eclipse.jetty.websocket.common.Parser.assertSanePayloadLength(Parser.java:127)
      [exec] at org.eclipse.jetty.websocket.common.Parser.parseFrame(Parser.java:482)
      [exec] at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:254)
      [exec] at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:632)
      [exec] at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:480)
      [exec] at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      [exec] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      [exec] at java.lang.Thread.run(Thread.java:745)

      Attachments

        1. KNOX-836.001.patch
          0.9 kB
          Sandeep More

        Issue Links

          Activity

            People

              smore Sandeep More
              smore Sandeep More
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: