diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2018-08-07 03:00:18 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2018-08-07 03:00:18 +0200 |
commit | edf368405a26cb4c68913abb77a2a3614e79b4f8 (patch) | |
tree | b793317458bc0c307fdeb892380937e41139c042 /src/websockets/qwebsocket.cpp | |
parent | b8c8bb67342b83091a4066ba6f45e150330cb0ac (diff) | |
parent | cf41cd16a1f156d68f9cb4a84dd77230f29d739f (diff) | |
download | qtwebsockets-edf368405a26cb4c68913abb77a2a3614e79b4f8.tar.gz |
Merge remote-tracking branch 'origin/5.11' into dev
Change-Id: Iffe66da51d3b7b38d04ca3c185b3b003b157f886
Diffstat (limited to 'src/websockets/qwebsocket.cpp')
-rw-r--r-- | src/websockets/qwebsocket.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/websockets/qwebsocket.cpp b/src/websockets/qwebsocket.cpp index 64d5e4c..b9c6cc0 100644 --- a/src/websockets/qwebsocket.cpp +++ b/src/websockets/qwebsocket.cpp @@ -402,7 +402,10 @@ qint64 QWebSocket::sendBinaryMessage(const QByteArray &data) Any data in the write buffer is flushed before the socket is closed. The \a closeCode is a QWebSocketProtocol::CloseCode indicating the reason to close, and - \a reason describes the reason of the closure more in detail + \a reason describes the reason of the closure more in detail. All control + frames, including the Close frame, are limited to 125 bytes. Since two of + these are used for \a closeCode the maximum length of \a reason is 123! If + \a reason exceeds this limit it will be truncated. */ void QWebSocket::close(QWebSocketProtocol::CloseCode closeCode, const QString &reason) { |