[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Don't log error messages from SetDeadline
commit 76087a6a770b924718c675246c861edc1b448636
Author: Cecylia Bocovich <cohosh@xxxxxxxxxxxxxx>
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)
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits