turn mitm conn Set[Read|Write]Deadline methods into noops

Timeouts should be handled by the http stack for the underlying tcp
connections so noops are appropriate for this virtual connection. No
need to panic.
This commit is contained in:
Barna Csorogi 2017-06-09 15:06:02 +02:00
parent a6bb5e3308
commit 8ac256351f
1 changed files with 3 additions and 3 deletions

View File

@ -52,15 +52,15 @@ func (c *mitmConn) LocalAddr() net.Addr {
}
func (c *mitmConn) SetDeadline(t time.Time) error {
panic("not implemented")
return nil
}
func (c *mitmConn) SetReadDeadline(t time.Time) error {
panic("not implemented")
return nil
}
func (c *mitmConn) SetWriteDeadline(t time.Time) error {
panic("not implemented")
return nil
}
type addr string