From 360323ffd064a56852e311758a715fd63727bca6 Mon Sep 17 00:00:00 2001 From: Mohamed Habib Date: Tue, 16 Jun 2026 18:17:48 -0700 Subject: [PATCH] Avoid draining fresh virtio-serial agent handshakes --- cmd/agent/listen_linux.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/agent/listen_linux.go b/cmd/agent/listen_linux.go index 06f52a8e..db048efd 100644 --- a/cmd/agent/listen_linux.go +++ b/cmd/agent/listen_linux.go @@ -116,9 +116,8 @@ func (l *virtioSerialListener) Accept() (net.Conn, error) { // bytes (GOAWAY frames, partial HTTP/2 frames). If we hand these to // the new gRPC session, it gets a protocol error and closes immediately. if instrumentVirtioSerial { - log.Printf("virtio-serial: Accept iter: active=false, draining stale...") + log.Printf("virtio-serial: Accept iter: active=false, waiting for fresh data...") } - drainStaleData(l.f) // Wait for the host to connect (port becomes readable with fresh data) if !waitForReadable(l.f, 500*time.Millisecond) {