This commit is contained in:
ffdfgdfg
2019-09-24 22:29:31 +08:00
parent 0de2c95934
commit a61ff2d200
6 changed files with 51 additions and 45 deletions

View File

@@ -70,7 +70,6 @@ func (s *conn) Read(buf []byte) (n int, err error) {
func (s *conn) readWindow(buf []byte, nCh chan int, errCh chan error) {
n, err := s.receiveWindow.Read(buf)
//logs.Warn("readwindow goroutine status n err buf", n, err, string(buf[:15]))
if s.receiveWindow.WindowFull {
if s.receiveWindow.Size() > 0 {
// window.Read may be invoked before window.Write, and WindowFull flag change to true