[snowflake/master] Don't log error messages from SetDeadline

commit 76087a6a770b924718c675246c861edc1b448636 Author: Cecylia Bocovich <cohosh@torproject.org> Date: Fri Oct 18 13:23:33 2019 -0400 Don't log error messages from SetDeadline We haven't implemented SetDeadline for webRTCConn and the error messages are misleading to proxy-go operators. --- proxy-go/snowflake.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/proxy-go/snowflake.go b/proxy-go/snowflake.go index 7dea8e8..68f8b67 100644 --- a/proxy-go/snowflake.go +++ b/proxy-go/snowflake.go @@ -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) }
participants (1)
-
cohosh@torproject.org