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

QWebSocketPrivate::processHandshake: Connection closed while reading header.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.5.0
    • WebSockets
    • None
    • Win 7 x86, VS 2010

      Trying to connect to 3rd party websockets server and sometimes connection successful, sometimes not.
      Error output:

      QAbstractSocket::ConnectionRefusedError "QWebSocketPrivate::processHandshake: Connection closed while reading header."
      QAbstractSocket::ConnectionRefusedError "Invalid statusline in response: upgrade: websocket\r\n."
      QAbstractSocket::ConnectionRefusedError "Invalid statusline in response: connection: Upgrade\r\n."
      QAbstractSocket::ConnectionRefusedError "Invalid statusline in response: sec-websocket-accept: lssSn848w3ryEO8PQwaR9svd7ZA=\r\n."
      QAbstractSocket::ConnectionRefusedError "Invalid statusline in response: \r\n."

      Wireshark output:

      GET /rtlscp/location/stream/ HTTP/1.1
      Host: 192.168.18.200:9003
      Upgrade: websocket
      Connection: Upgrade
      Sec-WebSocket-Key: BSADkFnVrGpl5bJy9Kf6Uw==
      Sec-WebSocket-Version: 13

      HTTP/1.1 101 Switching Protocols
      upgrade: websocket
      connection: Upgrade
      sec-websocket-accept: lssSn848w3ryEO8PQwaR9svd7ZA=

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

            kurt.pattyn Kurt Pattyn
            naihil Anatoliy
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes