File tree 2 files changed +5
-18
lines changed
lib/async/http/protocol/http2
2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
29
29
spec . add_dependency "async-pool" , ">= 0.6.1"
30
30
spec . add_dependency "protocol-http" , "~> 0.26.0"
31
31
spec . add_dependency "protocol-http1" , "~> 0.19.0"
32
- spec . add_dependency "protocol-http2" , "~> 0.16 .0"
32
+ spec . add_dependency "protocol-http2" , "~> 0.17 .0"
33
33
spec . add_dependency "traces" , ">= 0.10.0"
34
34
end
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ def initialize(*)
35
35
@write_frame_guard = Async ::Semaphore . new ( 1 )
36
36
end
37
37
38
+ def synchronize ( &block )
39
+ @write_frame_guard . acquire ( &block )
40
+ end
41
+
38
42
def to_s
39
43
"\# <#{ self . class } #{ @count } requests, #{ @streams . count } active streams>"
40
44
end
@@ -72,23 +76,6 @@ def close(error = nil)
72
76
end
73
77
end
74
78
75
- def write_frame ( frame )
76
- # We don't want to write multiple frames at the same time.
77
- @write_frame_guard . acquire do
78
- super
79
- end
80
-
81
- @stream . flush
82
- end
83
-
84
- def write_frames ( &block )
85
- @write_frame_guard . acquire do
86
- super
87
- end
88
-
89
- @stream . flush
90
- end
91
-
92
79
def read_in_background ( parent : Task . current )
93
80
raise RuntimeError , "Connection is closed!" if closed?
94
81
You can’t perform that action at this time.
0 commit comments