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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.0
    • WebSockets
    • None
    • Linux/X11

    Description

      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

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-81084
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change