[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 51cfff2b1fd89eabf5067e6aa31e2d40257b0563
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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
 			}
 		}

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits