From 5c19668b2d887400e1c30160cce0b410da6a50b0 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni <7008900+sinkingsugar@users.noreply.github.com> Date: Wed, 21 Oct 2020 10:08:24 +0900 Subject: [PATCH] avoid verbose EOF messages in readOnce(secure) (#411) * avoid verbose EOF messages in readOnce(secure) * shorten azure tests further --- libp2p.nimble | 2 -- libp2p/protocols/secure/secure.nim | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libp2p.nimble b/libp2p.nimble index 1393867db..d47741f5f 100644 --- a/libp2p.nimble +++ b/libp2p.nimble @@ -58,7 +58,6 @@ task testpubsub, "Runs pubsub tests": task testpubsub_slim, "Runs pubsub tests": runTest("pubsub/testgossipinternal", sign = false, verify = false, moreoptions = "-d:pubsub_internal_testing") runTest("pubsub/testpubsub") - runTest("pubsub/testpubsub", sign = false, verify = false, moreoptions = "-d:libp2p_pubsub_anonymize=true") task testfilter, "Run PKI filter test": runTest("testpkifilter", @@ -80,7 +79,6 @@ task test, "Runs the test suite": task test_slim, "Runs the test suite": exec "nimble testnative" exec "nimble testpubsub_slim" - exec "nimble testdaemon" exec "nimble testinterop" exec "nimble testfilter" diff --git a/libp2p/protocols/secure/secure.nim b/libp2p/protocols/secure/secure.nim index 287e6b934..53ab13600 100644 --- a/libp2p/protocols/secure/secure.nim +++ b/libp2p/protocols/secure/secure.nim @@ -126,9 +126,11 @@ method readOnce*(s: SecureConn, (@[], exc) if not isNil(err): - warn "error while reading message from secure connection, closing.", error=err.name, - message=err.msg, - connection=s + if not (err of LPStreamEOFError): + warn "error while reading message from secure connection, closing.", + error=err.name, + message=err.msg, + connection=s await s.close() raise err