diff --git a/Sources/tart/GuestAgentChannel.swift b/Sources/tart/GuestAgentChannel.swift index f754f2f..8ff40ae 100644 --- a/Sources/tart/GuestAgentChannel.swift +++ b/Sources/tart/GuestAgentChannel.swift @@ -14,8 +14,11 @@ func withGuestAgentChannel( let channel = try GRPCChannelPool.with( target: .unixDomainSocket(socketPath), transportSecurity: .plaintext, - eventLoopGroup: .singletonMultiThreadedEventLoopGroup, - ) + eventLoopGroup: .singletonMultiThreadedEventLoopGroup + ) { configuration in + // Limit guest output in flight to work around VirtIO socket device implementation data loss + configuration.http2.targetWindowSize = 64 * 1024 + } do { let result = try await body(channel)