mirror of
https://github.com/apple/container.git
synced 2026-09-13 19:25:47 +00:00
feat: add proxy utility (#288)
Signed-off-by: Harry Li <harrymingh@gmail.com> Co-authored-by: Dmitry Kovba <dkovba@apple.com>
This commit is contained in:
@@ -267,7 +267,6 @@ extension SocketRelay {
|
||||
)
|
||||
}
|
||||
|
||||
// `buf1` isn't used concurrently.
|
||||
nonisolated(unsafe) let buf1 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: Int(getpagesize()))
|
||||
connSource.setEventHandler {
|
||||
Self.fdCopyHandler(
|
||||
@@ -279,7 +278,6 @@ extension SocketRelay {
|
||||
}
|
||||
|
||||
nonisolated(unsafe) let buf2 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: Int(getpagesize()))
|
||||
// `buf2` isn't used concurrently.
|
||||
vsockConnectionSource.setEventHandler {
|
||||
Self.fdCopyHandler(
|
||||
buffer: buf2,
|
||||
|
||||
Reference in New Issue
Block a user