protocol-http2 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 664e6edd764651712185896646bf4b29a0285901d5386794a194c46510b65a49
|
4
|
+
data.tar.gz: 71348b749da8a0e42becff14f0a8e70ce09f8ddd0bcc0e46d7a8e7562fbf6f10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56403ed4ecfeba6e0badcb310c83d5477a13a47e33542d663e245b6ffb0b943b02968746681f23b9c330244b9564ce912e856a8fea7065b7553a820988a839e2
|
7
|
+
data.tar.gz: 01bd6caa3e90393ccadc36f1103f80fa026bb1ce52fdf73ed83bd8fae7774bab95e7b69eb21675c832c38f99b876fd1eedb21b97e24e9dceb813d950822331b1
|
@@ -400,7 +400,7 @@ module Protocol
|
|
400
400
|
# DATA frames are subject to flow control and can only be sent when a stream is in the "open" or "half-closed (remote)" state. The entire DATA frame payload is included in flow control, including the Pad Length and Padding fields if present. If a DATA frame is received whose stream is not in "open" or "half-closed (local)" state, the recipient MUST respond with a stream error of type STREAM_CLOSED.
|
401
401
|
def receive_data(frame)
|
402
402
|
if @state == :open
|
403
|
-
|
403
|
+
update_local_window(frame)
|
404
404
|
|
405
405
|
if frame.end_stream?
|
406
406
|
@state = :half_closed_remote
|
@@ -408,7 +408,7 @@ module Protocol
|
|
408
408
|
|
409
409
|
process_data(frame)
|
410
410
|
elsif @state == :half_closed_local
|
411
|
-
|
411
|
+
update_local_window(frame)
|
412
412
|
|
413
413
|
process_data(frame)
|
414
414
|
|