mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
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:
parent
da8b98d090
commit
76087a6a77
1 changed files with 0 additions and 6 deletions
|
@ -210,16 +210,10 @@ type timeoutConn struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tc timeoutConn) Read(buf []byte) (int, error) {
|
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)
|
return tc.c.Read(buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tc timeoutConn) Write(buf []byte) (int, error) {
|
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)
|
return tc.c.Write(buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue