mirror of
https://git.phreedom.club/localhost_frssoft/compy.git
synced 2024-11-05 16:03:19 +00:00
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:
parent
a6bb5e3308
commit
8ac256351f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue