timeoutconn: remove debug
This commit is contained in:
parent
de47b5aaf5
commit
c262be5f58
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user