From bf6cc8903c3db1ac263c04cf266173d715e578f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 17 Jan 2024 10:10:36 +0800 Subject: [PATCH] Fix missing write result in TFO open --- common/dialer/tfo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/dialer/tfo.go b/common/dialer/tfo.go index 0b0c9fcc..82e5e9c1 100644 --- a/common/dialer/tfo.go +++ b/common/dialer/tfo.go @@ -80,6 +80,7 @@ func (c *slowOpenConn) Write(b []byte) (n int, err error) { c.conn = nil c.err = E.Cause(err, "dial tcp fast open") } + n = len(b) close(c.create) return }