Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 7b216be

Browse files
NickCaogithub-actions[bot]
authored andcommitted
Suppress OSError from sending EOF on UDS
(cherry picked from commit 5a91f5b)
1 parent da5f51e commit 7b216be

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • packages/jumpstarter/jumpstarter/streams

packages/jumpstarter/jumpstarter/streams/common.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ async def copy_stream(dst: AnyByteStream, src: AnyByteStream):
1818
with suppress(BrokenResourceError, ClosedResourceError, asyncio.exceptions.InvalidStateError):
1919
async for v in src:
2020
await dst.send(v)
21-
with suppress(AttributeError):
21+
with suppress(
22+
AttributeError,
23+
# https://github.com/jumpstarter-dev/jumpstarter/issues/444
24+
# sending EOF to UDS on Darwin could result in
25+
# OSError: [Errno 57] Socket is not connected
26+
OSError,
27+
):
2228
await dst.send_eof()
2329

2430

0 commit comments

Comments
 (0)