Don't log error messages from SetDeadline

We haven't implemented SetDeadline for webRTCConn and the error messages
are misleading to proxy-go operators.
This commit is contained in:
Cecylia Bocovich 2019-10-18 13:23:33 -04:00
parent da8b98d090
commit 76087a6a77

View file

@ -210,16 +210,10 @@ type timeoutConn struct {
}
func (tc timeoutConn) Read(buf []byte) (int, error) {
if err := tc.c.SetDeadline(time.Now().Add(tc.t)); err != nil {
log.Printf("calling SetDeadline in Read returned the following error: %v", err)
}
return tc.c.Read(buf)
}
func (tc timeoutConn) Write(buf []byte) (int, error) {
if err := tc.c.SetDeadline(time.Now().Add(tc.t)); err != nil {
log.Printf("calling SetDeadline in Write returned the following error: %v", err)
}
return tc.c.Write(buf)
}