From 76087a6a770b924718c675246c861edc1b448636 Mon Sep 17 00:00:00 2001 From: Cecylia Bocovich Date: Fri, 18 Oct 2019 13:23:33 -0400 Subject: [PATCH] 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) }