From 5e1b0be81c62559c9beecee03f9cc369d8a80105 Mon Sep 17 00:00:00 2001 From: ffdfgdfg Date: Fri, 27 Dec 2019 13:02:28 +0800 Subject: [PATCH] fix mux send window size counting --- lib/mux/conn.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/mux/conn.go b/lib/mux/conn.go index 0f28acb..52fb642 100644 --- a/lib/mux/conn.go +++ b/lib/mux/conn.go @@ -446,7 +446,20 @@ func (Self *SendWindow) allow() { } func (Self *SendWindow) sent(sentSize uint32) { - atomic.AddUint64(&Self.remainingWait, ^(uint64(sentSize)<= sentSize { + atomic.AddUint64(&Self.remainingWait, ^(uint64(sentSize)<