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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Component/s: WebSockets
    • Labels:
      None
    • Platform/s:
      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

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

            Activity

              People

              Assignee:
              cnn Qt Core & Network
              Reporter:
              aha_1980 André Hartmann
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes