Fix missing write result in TFO open

This commit is contained in:
世界 2024-01-17 10:10:36 +08:00
parent 1b15e1692a
commit bf6cc8903c
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -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
}