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 }