Fix slow open

This commit is contained in:
世界 2023-03-23 17:14:38 +08:00
parent 466800aa3a
commit dd5b0abc67
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -119,6 +119,10 @@ func (c *slowOpenConn) LazyHeadroom() bool {
return c.conn == nil
}
func (c *slowOpenConn) NeedHandshake() 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)