Skip to content

Commit ad4a7eb

Browse files
committed
Restore Unix socket server address semantics
1 parent 89092e8 commit ad4a7eb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

services/agent/agent/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414
import threading
1515
import time
16+
from typing import Any, cast
1617

1718
from flask import Flask, jsonify, request
1819

@@ -631,6 +632,7 @@ class _UnixWSGIServer(WSGIServer):
631632
def __init__(self, socket_path: str, handler_cls: type[WSGIRequestHandler]) -> None:
632633
self._socket_path = socket_path
633634
super().__init__(("localhost", 0), handler_cls, bind_and_activate=False)
635+
self.server_address = cast(Any, socket_path)
634636
self.server_bind()
635637
self.server_activate()
636638

0 commit comments

Comments
 (0)