Unix socket listener cannot bind on restart
AndrewFerr opened this issue · comments
Andrew Ferrazzutti commented
System: Fedora Linux 39 (Workstation Edition)
When using a Unix socket as a listener (via a config of http.listeners[*].binds.socket
), the socket file is not deleted when MAS is shut down. This prevents MAS from starting up again later with an error of:
Error: could not bind socket
Caused by:
Address already in use (os error 98)
Only when I manually delete the socket file can MAS be started again.
Perhaps relevant: when created, the socket file has file mode bits of 0755 (user read-write, group/others read-only).