diff options
author | Ryan Chu <ryan.chu@qt.io> | 2019-08-27 13:29:31 +0200 |
---|---|---|
committer | Ryan Chu <ryan.chu@qt.io> | 2019-08-28 13:03:39 +0200 |
commit | 470a1cb4e43d410cb0d05286b286f491c85ffd29 (patch) | |
tree | ea36024222f902fe96e1eb4162192f05a29cac3f /tests | |
parent | ceeb9952b29345b662669a6a0a5c4dadf49db114 (diff) | |
download | qtwebsockets-470a1cb4e43d410cb0d05286b286f491c85ffd29.tar.gz |
QWebsocket doesn't receive message with size larger than 1M
If the processing of QWebSocketFrame is not done and waiting for more
data, QWebSocketPrivate::processData should return the control and wait
for next readyRead signal.
Continue the change of b2fc794ffaf48c9d9c401b54cf39ea0220617a27
Change-Id: Idf5af0710267e59e63b8e234d6dab5843d821696
Reviewed-by: Jesus Fernandez <jsfdez@gmail.com>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp index 19af815..71e1262 100644 --- a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp +++ b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp @@ -472,8 +472,8 @@ void tst_QWebSocket::tst_sendTextMessage() QCOMPARE(urlConnected, url); QCOMPARE(socket.bytesToWrite(), 0); - // transmit a long text message with 64 kb - QString longString(65536, 'a'); + // transmit a long text message with 1 MB + QString longString(0x100000, 'a'); socket.sendTextMessage(longString); QVERIFY(socket.bytesToWrite() > longString.length()); QVERIFY(textMessageReceived.wait()); |