Skip to content

[relay] Shutdown errors silently swallowed with .ok() #159

@intendednull

Description

@intendednull

Problem

crates/relay/src/main.rs:234 drops shutdown errors with .shutdown().await.ok(). On shutdown failure (I/O error, already-closed socket, etc.), the failure is invisible.

Fix

Log the error via tracing::warn! with context. Leave the shutdown path non-fatal but observable.

Context

Audit finding. Severity: medium. Obvious fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions