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

Handshake fails with Chrome as client

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.3.0
    • WebSockets
    • None
    • Google Chrome 32.0.1700.107 m
      Safari 7.0.1 (9537.73.11)
      Firefox 26.0
    • ab9c90681aaa0950fb54e6dcf67f94f789d7162d

    Description

      It seems like QWebSocketHandshakeRequest::readHandshake() fails if cant read the whole GET http request right now.
      When I'm using Chrome as client I see that first textStream.readLine()in QWebSocketHandshakeRequest::readHandshake() returns only "G" instead of full http request so function returns false.
      If insert line:
      if (pTcpSocket->bytesAvailable() < 150) return;
      into the slot QWebSocketServerPrivate::handshakeReceived() before disconnect from QTcpSocket::readyRead() then connection was successfull.

      Attachments

        Issue Links

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

          Activity

            People

              kurt.pattyn Kurt Pattyn
              hungrylion Lev Golod
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes