Skip to content

Commit 6e67594

Browse files
committed
DEBUG
Signed-off-by: Akihiro Suda <[email protected]>
1 parent c597fe6 commit 6e67594

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/portfwdserver/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"errors"
99
"io"
1010
"net"
11+
"runtime"
1112
"time"
1213

1314
"github.com/lima-vm/lima/pkg/guestagent/api"
@@ -39,6 +40,9 @@ func (s *TunnelServer) Start(stream api.GuestService_TunnelServer) error {
3940
proxy := tcpproxy.DialProxy{DialContext: func(_ context.Context, _, _ string) (net.Conn, error) {
4041
return conn, nil
4142
}}
43+
if runtime.GOOS == "windows" {
44+
proxy.KeepAlivePeriod = 30 * time.Second
45+
}
4246
proxy.HandleConn(rw)
4347
return nil
4448
}

0 commit comments

Comments
 (0)