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
1 changed files with 1 additions and 0 deletions

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
}