Explorar el Código

Fixing recv window updates for direct buffer

Armon Dadgar hace 10 años
padre
commit
89cddd2869
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  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
 	}