Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62949

QWebSocket::close method missing 125 bytes payload restriction for close reason

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 5.11.2
    • 5.7.1
    • WebSockets
    • None
    • Debian 7 armhf with gcc 4.7.2

    • cf41cd16a1f156d68f9cb4a84dd77230f29d739f

    Description

      As implemented and documented for the ping method it would be highly appreciated if the close method would

      • mention the 125 bytes restrictions for control frames as specified in RFC 6455  in the documentation
      • automatically clipping the close reason if exceeded

      Tested with jetty as a websocket client and QWebsocket as a server it is complaining in case a close reason is longer than 125 bytes :

      org.eclipse.jetty.websocket.api.ProtocolException: Invalid control frame payload length, [160] cannot exceed [125]

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim Mårten Nordheim
            dirkneuber Dirk Neuber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes