From 49b3da01cdefe089747cbde68def6fa772481d05 Mon Sep 17 00:00:00 2001 From: ffdfgdfg Date: Wed, 1 Jan 2020 23:18:23 +0800 Subject: [PATCH] add some logs --- lib/mux/conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mux/conn.go b/lib/mux/conn.go index a2b2f5f..f6ea2ae 100644 --- a/lib/mux/conn.go +++ b/lib/mux/conn.go @@ -250,7 +250,7 @@ func (Self *ReceiveWindow) calcSize() { // twice grow } if n > (common.MAXIMUM_WINDOW_SIZE / uint32(conns)) { - //logs.Warn("window too large", n) + logs.Warn("window too large, calculated:", n, "limit:", common.MAXIMUM_WINDOW_SIZE/uint32(conns)) n = common.MAXIMUM_WINDOW_SIZE / uint32(conns) } // set the maximum size @@ -479,7 +479,7 @@ func (Self *SendWindow) SetSize(currentMaxSizeDone uint64) (closed bool) { ptrs := atomic.LoadUint64(&Self.maxSizeDone) maxsize, send, wait = Self.unpack(ptrs) if read > send { - logs.Error("read > send") + logs.Error("window read > send: max size:", currentMaxSize, "read:", read, "send", send) return } if read == 0 && currentMaxSize == maxsize {