Ver Fonte

Fixing recv window updates for direct buffer

Armon Dadgar há 10 anos atrás
pai
commit
89cddd2869
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      stream.go

+ 4 - 2
stream.go

@@ -132,12 +132,14 @@ WAIT:
 	select {
 	case <-s.recvNotifyCh:
 		if dBuf != nil && dBuf.bytes > 0 {
-			return dBuf.bytes, nil
+			err = s.sendWindowUpdate()
+			return dBuf.bytes, err
 		}
 		goto START
 	case <-timeout:
 		if dBuf != nil && dBuf.bytes > 0 {
-			return dBuf.bytes, nil
+			err = s.sendWindowUpdate()
+			return dBuf.bytes, err
 		}
 		return 0, ErrTimeout
 	}