timeoutconn: remove debug

This commit is contained in:
Sergey Cherepanov authored and Mikhail Iudin committed 2023-02-13 22:13:40 +03:00
1 parent de47b5aaf5
commit c262be5f58
1 file changed
-1
-1
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 {