diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-06-26 11:37:19 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-06-26 13:28:45 +0200 |
commit | 788d4856330e6f5d251f9b153de3d22b8cf538f1 (patch) | |
tree | 6394e46b4009893dc651c7fc2b60564d70908b7d /src/websockets/qdefaultmaskgenerator_p.h | |
parent | d805ecbfe7fc1ad810e24624ef8c339fc6e2302d (diff) | |
download | qtwebsockets-788d4856330e6f5d251f9b153de3d22b8cf538f1.tar.gz |
QSslServer - adopt the newly created socket
Like it's done in QTcpServer. In theory, it's possible that 'encrypted'
signal is never executed and then the socket is not added to the pending
connections (those are deleted in the QTcpServer::close).
Thus, the socket object would be leaked. Since QSslServer inherits from
QTcpServer, this fix also ensures the documented behavior of the
QTcpServer::nextPendingConnection (which is said to return a child
of the server object).
Fixes: QTBUG-85180
Pick-to: 5.15
Change-Id: Ic0d923b7a7fe5e3bcea0b9815be1cbe946dda186
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/websockets/qdefaultmaskgenerator_p.h')
0 files changed, 0 insertions, 0 deletions