protocol-http2 0.19.2 → 0.19.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http2/connection.rb +5 -7
- data/lib/protocol/http2/stream.rb +2 -2
- data/lib/protocol/http2/version.rb +1 -1
- data/lib/protocol/http2/window.rb +5 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fc681846886564561e01287c0c8ac5db0944222c6f94262894fe50ac1d0d2a5
|
4
|
+
data.tar.gz: 94106491f20c0b6f08fc637ecd46ccab6a38362207f90ddfefb12b02ba901aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bb39e01cf605b16625a81ba6706b37ec9022c220e3200cea4e8136091842532f9a00b47c76980a36e726401f35eaf22522211e2c567322099512f6a1c472278
|
7
|
+
data.tar.gz: e2ca6677a9b488a0ec7d4e74ecf1bfb349e496d2e248c60928c27286cfa99c3a5e07a6edf2b957d797c6f374e2e23b2f2ac362b0458594064acf5d9de856c872
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -215,20 +215,18 @@ module Protocol
|
|
215
215
|
def write_frame(frame)
|
216
216
|
synchronize do
|
217
217
|
@framer.write_frame(frame)
|
218
|
-
|
219
|
-
# I tried moving this outside the synchronize block but it caused a deadlock.
|
220
|
-
@framer.flush
|
221
218
|
end
|
219
|
+
|
220
|
+
@framer.flush
|
222
221
|
end
|
223
222
|
|
224
223
|
def write_frames
|
225
224
|
if @framer
|
226
225
|
synchronize do
|
227
226
|
yield @framer
|
228
|
-
|
229
|
-
# See note above.
|
230
|
-
@framer.flush
|
231
227
|
end
|
228
|
+
|
229
|
+
@framer.flush
|
232
230
|
else
|
233
231
|
raise EOFError, "Connection closed!"
|
234
232
|
end
|
@@ -476,7 +474,7 @@ module Protocol
|
|
476
474
|
# Return if there is no window to consume:
|
477
475
|
return unless size > 0
|
478
476
|
|
479
|
-
# Console.
|
477
|
+
# Console.info(self) do |buffer|
|
480
478
|
# @dependencies.each do |id, dependency|
|
481
479
|
# buffer.puts "- #{dependency}"
|
482
480
|
# end
|
@@ -275,7 +275,7 @@ module Protocol
|
|
275
275
|
end
|
276
276
|
|
277
277
|
protected def ignore_headers(frame)
|
278
|
-
#
|
278
|
+
# Console.warn(self) {"Received headers in state: #{@state}!"}
|
279
279
|
end
|
280
280
|
|
281
281
|
def receive_headers(frame)
|
@@ -316,7 +316,7 @@ module Protocol
|
|
316
316
|
end
|
317
317
|
|
318
318
|
def ignore_data(frame)
|
319
|
-
#
|
319
|
+
# Console.warn(self) {"Received headers in state: #{@state}!"}
|
320
320
|
end
|
321
321
|
|
322
322
|
# 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.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright,
|
4
|
+
# Copyright, 2024, by Samuel Williams.
|
5
5
|
|
6
6
|
module Protocol
|
7
7
|
module HTTP2
|
@@ -72,8 +72,10 @@ module Protocol
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def inspect
|
75
|
-
"\#<#{self.class}
|
75
|
+
"\#<#{self.class} available=#{@available} used=#{@used} capacity=#{@capacity}#{limited? ? " limited" : nil}>"
|
76
76
|
end
|
77
|
+
|
78
|
+
alias to_s inspect
|
77
79
|
end
|
78
80
|
|
79
81
|
# This is a window which efficiently maintains a desired capacity.
|
@@ -108,7 +110,7 @@ module Protocol
|
|
108
110
|
end
|
109
111
|
|
110
112
|
def inspect
|
111
|
-
"\#<#{self.class}
|
113
|
+
"\#<#{self.class} available=#{@available} used=#{@used} capacity=#{@capacity} desired=#{@desired} #{limited? ? "limited" : nil}>"
|
112
114
|
end
|
113
115
|
end
|
114
116
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protocol-http2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -40,7 +40,7 @@ cert_chain:
|
|
40
40
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
41
41
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
42
42
|
-----END CERTIFICATE-----
|
43
|
-
date: 2024-
|
43
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
44
44
|
dependencies:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: protocol-hpack
|
metadata.gz.sig
CHANGED
Binary file
|