Commit 637e6423 authored by rui.zheng's avatar rui.zheng

fix ssh deadline

parent 11b727d7
...@@ -830,13 +830,13 @@ func (c *sshConn) RemoteAddr() net.Addr { ...@@ -830,13 +830,13 @@ func (c *sshConn) RemoteAddr() net.Addr {
} }
func (c *sshConn) SetDeadline(t time.Time) error { func (c *sshConn) SetDeadline(t time.Time) error {
return &net.OpError{Op: "set", Net: "ssh", Source: nil, Addr: nil, Err: errors.New("deadline not supported")} return nil
} }
func (c *sshConn) SetReadDeadline(t time.Time) error { func (c *sshConn) SetReadDeadline(t time.Time) error {
return &net.OpError{Op: "set", Net: "ssh", Source: nil, Addr: nil, Err: errors.New("deadline not supported")} return nil
} }
func (c *sshConn) SetWriteDeadline(t time.Time) error { func (c *sshConn) SetWriteDeadline(t time.Time) error {
return &net.OpError{Op: "set", Net: "ssh", Source: nil, Addr: nil, Err: errors.New("deadline not supported")} return nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment