[tor-commits] [meek/master] Don't log "error reading from local: EOF"

dcf at torproject.org dcf at torproject.org
Fri Apr 19 04:21:11 UTC 2019


commit 51cfff2b1fd89eabf5067e6aa31e2d40257b0563
Author: David Fifield <david at bamsoftware.com>
Date:   Thu Apr 18 22:19:23 2019 -0600

    Don't log "error reading from local: EOF"
---
 meek-client/meek-client.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meek-client/meek-client.go b/meek-client/meek-client.go
index 4838b68..73ca214 100644
--- a/meek-client/meek-client.go
+++ b/meek-client/meek-client.go
@@ -202,7 +202,9 @@ func copyLoop(conn net.Conn, info *RequestInfo) error {
 			// log.Printf("read from local: %q", b)
 			ch <- b
 			if err != nil {
-				log.Printf("error reading from local: %s", err)
+				if err != io.EOF {
+					log.Printf("error reading from local: %s", err)
+				}
 				break
 			}
 		}



More information about the tor-commits mailing list