Jump to solution
Verify

The Fix

Downgrades the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections.

Based on closed aio-libs/aiohttp issue #11113 · PR/commit linked

Production note: Most teams hit this during upgrades or environment changes. Roll out with a canary and smoke critical endpoints (health, OpenAPI/docs) before 100%.

Jump to Verify Open PR/Commit
@@ -0,0 +1 @@ @@ -0,0 +1 @@ +11148.feature.rst \ No newline at end of file diff --git a/CHANGES/11148.feature.rst b/CHANGES/11148.feature.rst
repro.py
Logs: [START] Security scan [DONE] Security scan ## ComfyUI-Manager: installing dependencies done. ** ComfyUI startup time: 2025-05-31 17:06:26.459 ** Platform: Linux ** Python version: 3.11.12 | packaged by conda-forge | (main, Apr 10 2025, 22:23:25) [GCC 13.3.0] ** Python executable: /opt/conda/bin/python ** ComfyUI Path: /app/ComfyUI ** ComfyUI Base Folder Path: /app/ComfyUI ** User directory: /app/ComfyUI/user ** ComfyUI-Manager config path: /app/ComfyUI/user/default/ComfyUI-Manager/config.ini ** Log path: /app/ComfyUI/user/comfyui.log WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning. [ComfyUI-Manager] 'numpy' dependency were fixed Prestartup times for custom nodes:   13.5 seconds: /app/ComfyUI/custom_nodes/ComfyUI-Manager Checkpoint files will always be loaded safely. Total VRAM 7841 MB, total RAM 7640 MB pytorch version: 2.7.0+cu128 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync Using pytorch attention Python version: 3.11.12 | packaged by conda-forge | (main, Apr 10 2025, 22:23:25) [GCC 13.3.0] ComfyUI version: 0.3.39 ComfyUI frontend version: 1.20.7 [Prompt Server] web root: /opt/conda/lib/python3.11/site-packages/comfyui_frontend_package/static ### Loading: ComfyUI-Manager (V3.32.5) [ComfyUI-Manager] network_mode: public ### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository) Import times for custom nodes:    0.0 seconds: /app/ComfyUI/custom_nodes/websocket_image_save.py    0.1 seconds: /app/ComfyUI/custom_nodes/ComfyUI-Manager Starting server To see the GUI go to: http://0.0.0.0:8188 Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json FETCH ComfyRegistry Data: 5/87 FETCH ComfyRegistry Data: 10/87 FETCH ComfyRegistry Data: 15/87 FETCH ComfyRegistry Data: 20/87 FETCH ComfyRegistry Data: 25/87 FETCH ComfyRegistry Data: 30/87 FETCH ComfyRegistry Data: 35/87 FETCH ComfyRegistry Data: 40/87 FETCH ComfyRegistry Data: 45/87 FETCH ComfyRegistry Data: 50/87 FETCH ComfyRegistry Data: 55/87 FETCH ComfyRegistry Data: 60/87 FETCH ComfyRegistry Data: 65/87 FETCH ComfyRegistry Data: 70/87 FETCH ComfyRegistry Data: 75/87 FETCH ComfyRegistry Data: 80/87 FETCH ComfyRegistry Data: 85/87 FETCH ComfyRegistry Data [DONE] [ComfyUI ... (truncated) ...
verify
Re-run the minimal reproduction on your broken version, then apply the fix and re-run.
fix.md
Option A — Apply the official fix\nDowngrades the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections.\nWhen NOT to use: This fix is not suitable for environments that require immediate SSL shutdown without logging.\n\n

Why This Fix Works in Production

  • Trigger: New feature "ssl_shutdown_timeout" parameter makes system report unnecessary 'Connection lost: SSL shutdown timed out' error
  • Mechanism: The new ssl_shutdown_timeout parameter causes unnecessary logging errors during SSL connection closure
Production impact:
  • If left unfixed, the same config can fail only in production (env differences), causing startup failures or partial feature outages.

Why This Breaks in Prod

  • Shows up under Python 3.11 in real deployments (not just unit tests).
  • The new ssl_shutdown_timeout parameter causes unnecessary logging errors during SSL connection closure
  • Production symptom (often without a traceback): New feature "ssl_shutdown_timeout" parameter makes system report unnecessary 'Connection lost: SSL shutdown timed out' error

Proof / Evidence

Discussion

High-signal excerpts from the issue thread (symptoms, repros, edge-cases).

“Or just have a condition when the value is 0?”
@Dreamsorcerer · 2025-06-04 · source
“It's not the new option that's triggering the logging, it's actually the back port of the connection close wait”
@bdraco · 2025-06-02 · source
“@bdraco can we define a new logger for connector or use exists logger from https://github.com/aio-libs/aiohttp/blob/21d640dc4b046be18bcb42aad8fa5445198fd219/aiohttp/log.py#L4 because now message is printed with root logger.”
@x0day · 2025-06-02 · source
“It is a bit strange that the original PR used the logger directly.”
@bdraco · 2025-06-02 · source

Failure Signature (Search String)

  • New feature "ssl_shutdown_timeout" parameter makes system report unnecessary 'Connection lost: SSL shutdown timed out' error
  • New feature "ssl_shutdown_timeout" parameter makes a lot of systems report unnecessary error.
Copy-friendly signature
signature.txt
Failure Signature ----------------- New feature "ssl_shutdown_timeout" parameter makes system report unnecessary 'Connection lost: SSL shutdown timed out' error New feature "ssl_shutdown_timeout" parameter makes a lot of systems report unnecessary error.

Error Message

Signature-only (no traceback captured)
error.txt
Error Message ------------- New feature "ssl_shutdown_timeout" parameter makes system report unnecessary 'Connection lost: SSL shutdown timed out' error New feature "ssl_shutdown_timeout" parameter makes a lot of systems report unnecessary error.

Minimal Reproduction

repro.py
Logs: [START] Security scan [DONE] Security scan ## ComfyUI-Manager: installing dependencies done. ** ComfyUI startup time: 2025-05-31 17:06:26.459 ** Platform: Linux ** Python version: 3.11.12 | packaged by conda-forge | (main, Apr 10 2025, 22:23:25) [GCC 13.3.0] ** Python executable: /opt/conda/bin/python ** ComfyUI Path: /app/ComfyUI ** ComfyUI Base Folder Path: /app/ComfyUI ** User directory: /app/ComfyUI/user ** ComfyUI-Manager config path: /app/ComfyUI/user/default/ComfyUI-Manager/config.ini ** Log path: /app/ComfyUI/user/comfyui.log WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning. [ComfyUI-Manager] 'numpy' dependency were fixed Prestartup times for custom nodes:   13.5 seconds: /app/ComfyUI/custom_nodes/ComfyUI-Manager Checkpoint files will always be loaded safely. Total VRAM 7841 MB, total RAM 7640 MB pytorch version: 2.7.0+cu128 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync Using pytorch attention Python version: 3.11.12 | packaged by conda-forge | (main, Apr 10 2025, 22:23:25) [GCC 13.3.0] ComfyUI version: 0.3.39 ComfyUI frontend version: 1.20.7 [Prompt Server] web root: /opt/conda/lib/python3.11/site-packages/comfyui_frontend_package/static ### Loading: ComfyUI-Manager (V3.32.5) [ComfyUI-Manager] network_mode: public ### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository) Import times for custom nodes:    0.0 seconds: /app/ComfyUI/custom_nodes/websocket_image_save.py    0.1 seconds: /app/ComfyUI/custom_nodes/ComfyUI-Manager Starting server To see the GUI go to: http://0.0.0.0:8188 Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json Error while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out') [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json FETCH ComfyRegistry Data: 5/87 FETCH ComfyRegistry Data: 10/87 FETCH ComfyRegistry Data: 15/87 FETCH ComfyRegistry Data: 20/87 FETCH ComfyRegistry Data: 25/87 FETCH ComfyRegistry Data: 30/87 FETCH ComfyRegistry Data: 35/87 FETCH ComfyRegistry Data: 40/87 FETCH ComfyRegistry Data: 45/87 FETCH ComfyRegistry Data: 50/87 FETCH ComfyRegistry Data: 55/87 FETCH ComfyRegistry Data: 60/87 FETCH ComfyRegistry Data: 65/87 FETCH ComfyRegistry Data: 70/87 FETCH ComfyRegistry Data: 75/87 FETCH ComfyRegistry Data: 80/87 FETCH ComfyRegistry Data: 85/87 FETCH ComfyRegistry Data [DONE] [ComfyUI ... (truncated) ...

Environment

  • Python: 3.11

What Broke

Systems report excessive 'Connection lost: SSL shutdown timed out' errors during shutdown.

Why It Broke

The new ssl_shutdown_timeout parameter causes unnecessary logging errors during SSL connection closure

Fix Options (Details)

Option A — Apply the official fix

Downgrades the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections.

When NOT to use: This fix is not suitable for environments that require immediate SSL shutdown without logging.

Fix reference: https://github.com/aio-libs/aiohttp/pull/11148

Last verified: 2026-02-09. Validate in your environment.

Get updates

We publish verified fixes weekly. No spam.

Subscribe

When NOT to Use This Fix

  • This fix is not suitable for environments that require immediate SSL shutdown without logging.

Verify Fix

verify
Re-run the minimal reproduction on your broken version, then apply the fix and re-run.

Did This Fix Work in Your Case?

Quick signal helps us prioritize which fixes to verify and improve.

Prevention

  • Make timeouts explicit and test them (unit + integration) to avoid silent behavior changes.
  • Instrument retries (attempt count + reason) and alert on spikes to catch dependency slowdowns.

Version Compatibility Table

VersionStatus
2.7.0 Broken

Related Issues

No related fixes found.

Sources

We don’t republish the full GitHub discussion text. Use the links above for context.