Undo accidental revert of commits (#289)

#288 accidentally reverted #282 and #284.
This commit is contained in:
Danny Canter
2025-09-13 17:37:15 -07:00
committed by GitHub
parent 5fbae0e590
commit f3641e67cb
8 changed files with 16 additions and 13 deletions
@@ -267,6 +267,7 @@ extension SocketRelay {
)
}
// `buf1` isn't used concurrently.
nonisolated(unsafe) let buf1 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: Int(getpagesize()))
connSource.setEventHandler {
Self.fdCopyHandler(
@@ -278,6 +279,7 @@ extension SocketRelay {
}
nonisolated(unsafe) let buf2 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: Int(getpagesize()))
// `buf2` isn't used concurrently.
vsockConnectionSource.setEventHandler {
Self.fdCopyHandler(
buffer: buf2,