Fix the socket relay error handling and log level (#535)

- Downgrades a warning to the debug level in `BidirectionalRelay`
because the shutdown syscall isn't supported for certain socket types
- Rethrows an error if we can't start a socket relay
This commit is contained in:
Dmitry Kovba authored and GitHub committed 2026-02-18 15:55:50 -08:00
1 parent cb3493b507
commit 36002eed5e
3 files changed
+10 -9

No files matched your search

@@ -182,7 +182,7 @@ public final class BidirectionalRelay: Sendable {
)
source.cancel()
if shutdown(destinationFd, SHUT_WR) != 0 {
log?.warning(
log?.debug(
"failed to shut down writes",
metadata: [
"errno": "\(errno)",