From 673074d6187396602974951873be09e6e8b6b11e Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Mon, 19 Nov 2018 15:26:01 -0800 Subject: [PATCH] Reverted hkexnet.Close() deletion, caused hang Signed-off-by: Russ Magee --- hkexshd/hkexshd.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hkexshd/hkexshd.go b/hkexshd/hkexshd.go index 77748d3..817e3b0 100755 --- a/hkexshd/hkexshd.go +++ b/hkexshd/hkexshd.go @@ -433,6 +433,8 @@ func main() { conn, err := l.Accept() if err != nil { log.Printf("Accept() got error(%v), hanging up.\n", err) + conn.Close() + //log.Fatal(err) } else { log.Println("Accepted client")