timeoutconn: remove debug
This commit is contained in:
parent
95b7927a4c
commit
ce0a60df67
@ -21,7 +21,6 @@ func NewConn(conn net.Conn, timeout time.Duration) *Conn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Conn) Write(p []byte) (n int, err error) {
|
func (c *Conn) Write(p []byte) (n int, err error) {
|
||||||
return c.Conn.Write(p)
|
|
||||||
for {
|
for {
|
||||||
if c.timeout != 0 {
|
if c.timeout != 0 {
|
||||||
if e := c.Conn.SetWriteDeadline(time.Now().Add(c.timeout)); e != nil {
|
if e := c.Conn.SetWriteDeadline(time.Now().Add(c.timeout)); e != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user