timeoutconn: remove debug
This commit is contained in:
1 parent
de47b5aaf5
commit
c262be5f58
1 file changed
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user