- Jun 12, 2016
-
-
André Klitzing authored
[ChangeLog][QWebSocket] It is now possible to use TLS PSK ciphersuites. Change-Id: I9e96669494cec5e6a4e076fe9f10fcd4ef6358a4 Reviewed-by:
Liang Qi <liang.qi@qt.io>
-
- Apr 07, 2016
-
-
Kai Koehne authored
processHandShake operates on complete lines. If the data available does not contain the full handshake message, the loop will therefore never return. Task-number: QTBUG-51001 Change-Id: Ie87f5b5dee01116f463e84f06feab502ff5ac563 Reviewed-by:
Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-
Frank Meerkoetter authored
Change-Id: I0ffeb96bfab3543f94501bf1605bb6c899ef466f Reviewed-by:
Alex Blasche <alexander.blasche@theqtcompany.com>
-
Frank Meerkoetter authored
Change-Id: I8930d132cfcf09edeaa30bb052d9ea0a5ee47a98 Reviewed-by:
Alex Blasche <alexander.blasche@theqtcompany.com>
-
Frank Meerkoetter authored
Do not create a global symbol. Change-Id: I176c0b4441815e5c6ca02b89b1fe0dd5a1bcdb2f Reviewed-by:
Alex Blasche <alexander.blasche@theqtcompany.com>
-
- Mar 10, 2016
-
-
Andy Shaw authored
This ensures that the peer certificate chain is kept in sync so that it can be queried when an encrypted connection has been made. Change-Id: I5df18bb71ac4bec3a8a939482df5a5ffe5c20cb5 Reviewed-by:
Liang Qi <liang.qi@theqtcompany.com>
-
- Jan 20, 2016
-
-
Antti Kokko authored
From Qt 5.7 -> LGPL v2.1 isn't an option anymore, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new LGPL header instead of LGPL21 one (in those files which will be under LGPL v3) Change-Id: I8c17da1f7e2f0a620e3627fa7f8087f185545c8a Reviewed-by:
Lars Knoll <lars.knoll@theqtcompany.com>
-
- Sep 04, 2015
-
-
Peter Kümmel authored
After moving the websocket into another thread current code doesn't work because then the QTcpSocket/QSslSocket objects reside in a different thread, for instance: "QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread" QObject::moveToThread(QThread*) also moves QObjects's children, therefore their internal socket objects need to be children of QWebSocket. QWebSocket has ownership of the internal socket, and the smart pointer is not needed any more. Change of cleanup code to prevent crashes with clang/msvc builds: QWebSocketPrivate is a scoped member of QObject (not QWebSocket) and is destroyed after QObject destructor body was executed, and so m_pSocket&co had already been destroyed (being children) when the destructor of QWebSocketPrivate is called via the scoped pointer. Analogous to 64927e04 Change-Id: I1ade6cda3fa793c30332cc5e103025e2dda3c78c Reviewed-by:
Luca Niccoli <lultimouomo@gmail.com> Reviewed-by:
Alex Blasche <alexander.blasche@theqtcompany.com>
-
- May 26, 2015
-
-
Luca Niccoli authored
Task-number: QTBUG-40842 Change-Id: I02787a0e55701966e564a312d51297f4160bd89a Reviewed-by:
Liang Qi <liang.qi@theqtcompany.com>
-
- May 22, 2015
-
-
Liang Qi authored
Task-number: QTBUG-46055 Change-Id: Iefdec32f778d39520802eabb25f4db37f80fdf76 Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by:
Luca Niccoli <lultimouomo@gmail.com> Reviewed-by:
Alex Blasche <alexander.blasche@theqtcompany.com>
-
- Apr 09, 2015
-
-
Luca Niccoli authored
The resource needs to be sent encoded in the HTTP request. Task-number: QTBUG-44889 Change-Id: I3c6c56f5fea1553f3b5751de7da0cfc76150f4b9 Reviewed-by:
Liang Qi <liang.qi@theqtcompany.com>
-
- Apr 08, 2015
-
-
Luca Niccoli authored
Request headers are not yet handled, only the QNetworkRequest::url() is taken into consideration. [ChangeLog][QWebSocket] Added open(const QNetworkRequest &) and request() Task-number: QTBUG-40842 Change-Id: Ia2e10f22c79b0a085afb9a2eb8437b7a73d4a045 Reviewed-by:
Liang Qi <liang.qi@theqtcompany.com>
-
Luca Niccoli authored
The client-side constructor was leaving it uninitialized, which would sometimes lead to spurious error signals being emitted. Task-number: QTBUG-44893 Change-Id: I7a17f1a16d9a5fe4218beb6d92993c1889ad836b Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by:
Liang Qi <liang.qi@theqtcompany.com>
-
Kimmo Karvinen authored
Lifetime of incoming QTcpSocket/QSslSocket are managed by the QTcpServer/QSslServer and thus the QWebSocketPrivate should clear the pointer to the socket when the socket is destroyed. Added auto test for the crash. Task-number: QTBUG-45331 Change-Id: I6e30e7cdcca22aa810ccc1a1d4d7d77c7cb2c349 Reviewed-by:
Steven Ceuppens <steven.ceuppens@icloud.com> Reviewed-by:
Liang Qi <liang.qi@theqtcompany.com>
-
- Feb 24, 2015
-
-
Liang Qi authored
Task-number: QTBUG-42298 Change-Id: I4c01052823ce48b737d30ac2e0ef11836124bc4f Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com> Reviewed-by: Neil Williams Reviewed-by:
Liang Qi <liang.qi@theqtcompany.com>
-
- Feb 16, 2015
-
-
Jani Heikkinen authored
Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I8467410bfad44e8d3fe6bd5724c61bb0c07c91f9 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com> Reviewed-by:
Sergio Ahumada <sahumada@texla.cl>
-
- Dec 29, 2014
-
-
Frederik Gladhorn authored
Task-number: QTBUG-42982 Change-Id: I50dbff96d7d64a5213e6ea6ba7bb9429b21b1fb2 Reviewed-by:
Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
-
- Nov 19, 2014
-
-
Allan Sandfeld Jensen authored
The websocket handshake could not handle being split over multiple TCP packets since it was entirely handled in on function. This patch splits it into a socket state making it possible to process over multiple incoming packaets. Change-Id: I3c45892ee6f1bb67062d561e9fbd2d7296f1208e Task-number: QTBUG-40878 Reviewed-by:
Jocelyn Turcotte <jocelyn.turcotte@digia.com>
-
- Nov 03, 2014
-
-
Christian Kandeler authored
Otherwise all code that calls it has to handle the other connections separately, which is error-prone and has actually been forgotten for the case where the QWebSocket is created via upgradeFrom(). Task-number: QTBUG-39551 Change-Id: I4d1e4faa1594b53e7a8dccc9ce13ef2c323b1c61 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Oct 15, 2014
-
-
Peter Kümmel authored
The signal bytesWritten(qint64) is part of the public API and should be emitted. Seems it was just forgotten. Change-Id: I85a56c22581c6bd3ecc504add34aeeabc76f4d2a Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Oct 10, 2014
-
-
Juha Turunen authored
QWebSocket used decoded version of the query part of the URL to construct the first line of the HTTP request. Task-number: QTBUG-41285 Change-Id: If16210f1b92e389dae8b1057a2d911122c31e2db Reviewed-by:
Simon Hausmann <simon.hausmann@digia.com>
-
- Aug 24, 2014
-
-
Antti Kokko authored
- Added LICENSE.LGPLv3, LICENSE.GPLv2 & LICENSE.LGPLv21 Change-Id: I0586e35a7aa99be1b5b3bda580b05897f451acbf Reviewed-by:
Jani Heikkinen <jani.heikkinen@digia.com>
-
- Jun 25, 2014
-
-
Jędrzej Nowacki authored
Change-Id: I25c9b9be2c780dae32e3f634f58e44be303a4b23 Task-number: QTBUG-39568 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- May 08, 2014
-
-
Thiago Macieira authored
The one from QtNetwork is more efficient, since it doesn't use regular expressions. This also solves a use of uninitialised variables. error: ‘httpStatusCode’ may be used uninitialized in this function [-Werror=maybe-uninitialized] Change-Id: Id7f203d971564651eb0bd63d3d54d074be947793 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Apr 09, 2014
-
-
Jędrzej Nowacki authored
Task-number: QTBUG-37975 Change-Id: I81225a870aa92350e959b741aec34332eb8d171e Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
Sze Howe Koh authored
- "WebSocket" is one word, with uppercase 'W' and 'S'. - "HTTP"/"HTTPS" is fully uppercase Change-Id: Ice3a50c94394433c97f7347291af5cda69b234ce Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Mar 18, 2014
-
-
Maurice Kalinowski authored
Change-Id: Ice7ad51cbbde0ef2459642309c32dd392463754d Reviewed-by:
Andrew Knight <andrew.knight@digia.com>
-
- Mar 17, 2014
-
-
Maurice Kalinowski authored
Change-Id: Ib302db81e0667d0c89c1da8611639db0811ff9f3 Reviewed-by:
Andrew Knight <andrew.knight@digia.com> Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Mar 12, 2014
-
-
Kurt Pattyn authored
Task-number: QTBUG-37228 Change-Id: I246b858694ea456bce9a0fc4ac963a83502fd058 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Feb 15, 2014
-
-
Kurt Pattyn authored
Change-Id: I9773492d3673d8aabdb4dd178be6af12eca7ba74 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
Kurt Pattyn authored
Created a QMaskGenerator abstract base class to serve as a basis for user specific mask generators. Added the possibility to override the default mask generation in QWebSocket. Change-Id: Iaa02b44193f854d103b5f352617789175fe61f89 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
Kurt Pattyn authored
Task-number: QTBUG-36762 Change-Id: I239bdd06252fb90056a687ace8540bb91b0055a1 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Feb 11, 2014
-
-
Kurt Pattyn authored
New line characters (\r\n) in the resource part of a url and in the origin string can be used to forge the http header and can lead to insertion of unwanted header entries. This can be an indication of an attack, so QWebSocket immediately refuses a connection. Change-Id: I9cdb309bfbe7025ad675925e6ea3e038476a1fd6 Reviewed-by:
Frederik Gladhorn <frederik.gladhorn@digia.com>
-
- Feb 07, 2014
-
-
Kurt Pattyn authored
Task-number: QTBUG-36676 Change-Id: Ia93751e5a972adf6434b0d749376e2a8c0619514 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Feb 06, 2014
-
-
Milian Wolff authored
The socket is put into an owning QScopedPointer. But if its also put into the QObject parent-child chain, it will get deleted when the QWebSocket is destroyed. In the dtor of the QWebSocketPrivate class m_pSocket will thus already be destroyed and thus be a dangling pointer. This crashed the QWebSocketServer test reliably for me on exit. Change-Id: I7f06e933bfed832e66b943542c351cde639c9465 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
Milian Wolff authored
The server test sets an empty identifier which results in a headerLine containing "Server: ". The split then yields a list with a single entry ("Server"). Calling [1] on it asserts then. QFATAL : tst_QWebSocketServer::tst_connectivity() ASSERT failure in QList<T>::operator[]: "index out of range", file /ssd/milian/projects/compiled/qt5/include/QtCore/qlist.h, line 476 Change-Id: I3e5c4750b304b2a4a5669a39e2d65a6b3e4e99cf Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
Milian Wolff authored
Inside the ctor of the private data, the QObject has not yet been associated with the data. Thus, accessing it indirectly i.e. to setup private signal/slot connections, will trigger crashes. Now we delay accessing this API and call an init() function manually in the parent QObject-inheriting class. Change-Id: I2c3ce7335c54d42af6bce87de867ee0ef197efc6 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Feb 05, 2014
-
-
Kurt Pattyn authored
Change-Id: I3f69a2b0ca81e1e003200bb8e0a337b9532e64a0 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
- Feb 01, 2014
-
-
Kurt Pattyn authored
Change-Id: I3e265ccba334301444611a8013568ba52cca5bcd Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-
Kurt Pattyn authored
Changed isValid() to only return true when the socket is also in connected state. Also updated the documentation. Change-Id: Id80dbc1f28c82bef19984c5ed7b34a7d474ee011 Reviewed-by:
Kurt Pattyn <pattyn.kurt@gmail.com>
-