Skip to content

Log spammed with: Failed to parse localaddr for upstream connection "[::1]" and "hijacked connection" messages #114

Open
@Robby-

Description

@Robby-

We are connecting to the ircd over the local loopback interface using ::1 as the address, and even though everything seems to work fine, the log/console is getting spammed with the following messages:

2025/01/22 06:21:45.943530 L_WARN client:253767 Failed to parse localaddr for upstream connection "[::1]"
2025/01/22 06:21:47.294457 L_WARN client:253768 Failed to parse localaddr for upstream connection "[::1]"
2025/01/22 06:21:59.263131 http: response.WriteHeader on hijacked connection from github.com/igm/sockjs-go/v3/sockjs.(*Handler).sockjsWebsocket (websocket.go:53)
2025/01/22 06:21:59.263230 http: response.Write on hijacked connection from fmt.Fprintln (print.go:305)
2025/01/22 06:22:00.085936 L_WARN client:253769 Failed to parse localaddr for upstream connection "[::1]"
2025/01/22 06:22:15.730254 L_WARN client:253770 Failed to parse localaddr for upstream connection "[::1]"
2025/01/22 06:22:19.430853 http: response.WriteHeader on hijacked connection from github.com/igm/sockjs-go/v3/sockjs.(*Handler).sockjsWebsocket (websocket.go:53)
2025/01/22 06:22:19.430929 http: response.Write on hijacked connection from fmt.Fprintln (print.go:305)
2025/01/22 06:22:30.812348 L_WARN client:253771 Failed to parse localaddr for upstream connection "[::1]"
2025/01/22 06:22:46.163853 L_WARN client:253772 Failed to parse localaddr for upstream connection "[::1]"

Unsure if both the parse errors and the "hijacked connection" messages are related to each other.

Possible relevant configuration settings of note are probably these:

[upstream.1]
hostname = "[::1]"
localaddr = "[::1]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions