File tree 3 files changed +6
-3
lines changed
pingora-core/src/connectors/http
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- 4b2957a626c93fec5e24438cbbc0b506bbca25a6
1
+ ba954539761beee5e5d09b66c3a2957212aa499f
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ httparse = "1"
29
29
bytes = " 1.0"
30
30
http = " 1.0.0"
31
31
log = " 0.4"
32
- h2 = " >=0.4.4 "
32
+ h2 = " >=0.4.6 "
33
33
once_cell = " 1"
34
34
lru = " 0"
35
35
ahash = " >=0.8.9"
Original file line number Diff line number Diff line change @@ -85,9 +85,12 @@ impl ConnectionRef {
85
85
release_lock : Arc :: new ( Mutex :: new ( ( ) ) ) ,
86
86
} ) )
87
87
}
88
+
88
89
pub fn more_streams_allowed ( & self ) -> bool {
90
+ let current = self . 0 . current_streams . load ( Ordering :: Relaxed ) ;
89
91
!self . is_shutting_down ( )
90
- && self . 0 . max_streams > self . 0 . current_streams . load ( Ordering :: Relaxed )
92
+ && self . 0 . max_streams > current
93
+ && self . 0 . connection_stub . 0 . current_max_send_streams ( ) > current
91
94
}
92
95
93
96
pub fn is_idle ( & self ) -> bool {
You can’t perform that action at this time.
0 commit comments