remove conn.Close

This commit is contained in:
aler9
2020-01-20 16:38:55 +01:00
parent 60ab706431
commit a3f5c6a5db

View File

@@ -25,10 +25,6 @@ func NewConn(nconn net.Conn) *Conn {
}
}
func (c *Conn) Close() error {
return c.nconn.Close()
}
func (c *Conn) ReadRequest() (*Request, error) {
c.nconn.SetReadDeadline(time.Now().Add(_READ_DEADLINE))
return requestDecode(c.nconn)