Avoid silent fallback to TCP if binding to systemd socket fails
This commit is contained in:
@@ -1338,10 +1338,7 @@ class PromptServer():
|
|||||||
return sockets
|
return sockets
|
||||||
for i in range(listen_fds):
|
for i in range(listen_fds):
|
||||||
fd = 3 + i
|
fd = 3 + i
|
||||||
try:
|
sockets.append(_fd_to_socket(fd))
|
||||||
sockets.append(_fd_to_socket(fd))
|
|
||||||
except Exception as e:
|
|
||||||
logging.error(f"Failed to convert fd {fd}: {e}")
|
|
||||||
os.unsetenv("LISTEN_FDS")
|
os.unsetenv("LISTEN_FDS")
|
||||||
os.unsetenv("LISTEN_PID")
|
os.unsetenv("LISTEN_PID")
|
||||||
return sockets
|
return sockets
|
||||||
|
|||||||
Reference in New Issue
Block a user