timeoutconn: remove debug

This commit is contained in:
Sergey Cherepanov 2023-02-13 22:13:40 +03:00
parent 95b7927a4c
commit ce0a60df67
No known key found for this signature in database
GPG Key ID: 87F8EDE8FBDF637C

View File

@ -21,7 +21,6 @@ func NewConn(conn net.Conn, timeout time.Duration) *Conn {
}
func (c *Conn) Write(p []byte) (n int, err error) {
return c.Conn.Write(p)
for {
if c.timeout != 0 {
if e := c.Conn.SetWriteDeadline(time.Now().Add(c.timeout)); e != nil {