mirror of
https://github.com/apple/container.git
synced 2026-09-13 11:15:41 +00:00
- Current implementation shuts down everything as soon as EOF is detected on DispatchSourceRead for the relay. This is problematic for, say an HTTP request where the client makes a request, and calls `shutdown(fd, SHUT_WR)` to close the send side, but it expects to be able to keep calling `recv()` to get the response. - Changed cancel handlers so that the one that sees that both sources have been cancelled then closes both the UDS and vsock fds. - Updated vminitd VsockProxy to also do `shutdown(fd, SHUT_WR)` for read hangup or EOF, and only close the underlying fds and unwire pollers on full hangup, broken pipe, error, or when both sides half-close.
OS
This target contains general useful OS related definitions or wrappers.