[ROCm][CI] Explicitly tear down multimodal offline LLMs (#46999)
Signed-off-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
+7
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user