tests hotfix
tests / windows (push) Failing after 14m37s
tests / linux (push) Successful in 2m11s
tests / macos (push) Successful in 1m14s
tests / package-smoke-linux (push) Skipped
tests / package-smoke-windows (push) Skipped
tests / package-smoke-macos (push) Skipped
tests / windows (push) Failing after 14m37s
tests / linux (push) Successful in 2m11s
tests / macos (push) Successful in 1m14s
tests / package-smoke-linux (push) Skipped
tests / package-smoke-windows (push) Skipped
tests / package-smoke-macos (push) Skipped
This commit is contained in:
1 parent
3ac2156ef2
commit
acd9334c16
5 files changed
+34
-6
No files matched your search
@@ -402,6 +402,13 @@ void FakeInternet::respond(QPointer<QTcpSocket> socket, const FakeResponse &resp
|
||||
socket->write(response.body.left(response.truncateTo));
|
||||
socket->flush();
|
||||
socket->disconnectFromHost();
|
||||
// Schannel (Windows) на disconnectFromHost шлёт только TLS close_notify и держит
|
||||
// TCP открытым, ожидая ответного close_notify, — клиент тогда висит до таймаута.
|
||||
// Обрыв на то и обрыв: если сокет не закрылся сам, рвём соединение.
|
||||
QTimer::singleShot(200, socket, [socket] {
|
||||
if (socket && socket->state() != QAbstractSocket::UnconnectedState)
|
||||
socket->abort();
|
||||
});
|
||||
return;
|
||||
}
|
||||
socket->write(response.body);
|
||||
|
||||
Reference in new issue
Block a user