[ROCm][CI] Explicitly tear down multimodal offline LLMs (#46999)

Signed-off-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
Andreas Karatzas
2026-06-29 07:59:24 +00:00
committed by GitHub
parent f6bb8682ee
commit db28ae2d07
6 changed files with 91 additions and 29 deletions
+7 -1
View File
@@ -1587,7 +1587,13 @@ class AssetHandler(http.server.BaseHTTPRequestHandler):
self.send_header("Content-Type", ctype)
self.send_header("Content-Length", str(len(data)))
self.end_headers()
self.wfile.write(data)
try:
self.wfile.write(data)
except (BrokenPipeError, ConnectionResetError) as e:
logger.debug(
"Client disconnected while serving test asset %s: %r", filename, e
)
self.close_connection = True
def _find_free_port() -> int: