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

Websocket client creates TCP RST instead proper shutdown on close()

XMLWordPrintable

    • Linux/X11
    • 1478c1dec (dev), 1656ea3b7 (6.10), 5672ee61f (6.9), fda9cfad8 (tqtc/lts-6.8)

      I've first used the Echo Client & Server example [1], but it also happens when the client example is run against an official server like [2].

      When close() is called in the client, it leads to:

      1. Client: WebSocket Connection Close [FIN]
      2. Client: TCP FIN
      3. Server: WebSocket Connection Close [FIN]
      4. Client: TCP RST

      Expected: The websocket as well as the TCP connection are shut down properly.

      [1] https://doc.qt.io/qt-5/qtwebsockets-echoserver-example.html
      [2] ws://echo.websocket.org

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

            cnn Qt Core & Network
            aha_1980 André Hartmann
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes