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

Commit 872d22f

Browse files
authored
Merge pull request #450 from jumpstarter-dev/backport-447-to-release-0.6
[Backport release-0.6] Suppress OSError from sending EOF on UDS
2 parents da5f51e + 7b216be commit 872d22f

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)