More fixes for fenrir's self-voice and notification system. Make sure proper sockets can be accessed.

This commit is contained in:
Storm Dragon committed 2026-11-04 22:51:18 -05:00
1 parent c4e9cb4b75
commit 69b94d14c6
9 files changed
+514 -16

No files matched your search

+2
View File
@@ -25,6 +25,7 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"net"
"os"
"path/filepath"
@@ -295,6 +296,7 @@ func (s *Server) handle(connection *net.UnixConn, path string) {
return
}
if routingErr != nil {
slog.Debug("remote routing failed", "pid", pid, "uid", uid, "error", routingErr, "at", time.Now())
_ = connection.SetWriteDeadline(time.Now().Add(250 * time.Millisecond))
_, _ = io.WriteString(connection, "Remote routing failed: "+routingErr.Error()+"\n")
return