Fix tfo headroom

This commit is contained in:
世界
2022-10-10 13:31:45 +08:00
parent a61a64bf9e
commit b8009d61b2

View File

@@ -113,6 +113,10 @@ func (c *slowOpenConn) WriterReplaceable() bool {
return c.conn != nil
}
func (c *slowOpenConn) LazyHeadroom() bool {
return c.conn == nil
}
func (c *slowOpenConn) ReadFrom(r io.Reader) (n int64, err error) {
if c.conn != nil {
return bufio.Copy(c.conn, r)