Unblock TLS peers during agent shutdown
Debian Trixie package bundle / packages (push) Failing after 12m29s

This commit is contained in:
Mario Fetka
2026-07-30 02:28:31 +02:00
parent fe7c12a45c
commit b052489d27
+9
View File
@@ -612,6 +612,15 @@ ConnCloseAll()
c = ConnIO.allocated.head;
while (c) {
if (!c->bSelfManage) {
/*
* ConnCloseAll() is the forceful service-shutdown path. Stop
* transport I/O before ConnTcpClose() tries to send a TLS
* close_notify; otherwise an idle peer that never answers the
* alert can hold the entire agent in gnutls_bye().
*/
if (c->socket != -1) {
IPshutdown(c->socket, 2);
}
ConnTcpClose(c);
}