Streams receiving peer reset clear pending send (#238)
Because streams that were being peer reset were not clearing pending send frames / buffered_send_data, they were not being counted towards the concurrency limit.
This commit is contained in:
committed by
Sean McArthur
parent
267789da92
commit
f8baeb7211
@@ -301,6 +301,13 @@ impl State {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_peer_reset(&self) -> bool {
|
||||
match self.inner {
|
||||
Closed(Cause::Proto(_)) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if the stream is already reset.
|
||||
pub fn is_reset(&self) -> bool {
|
||||
match self.inner {
|
||||
|
||||
Reference in New Issue
Block a user