Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.x.x http2 idle state (version 2) #371

Open
wants to merge 2 commits into
base: 2.x.x
Choose a base branch
from

Conversation

adam-fowler
Copy link
Member

This is an alternative to #370

Idle state is all done in the async handler. I merge the multiplexer inbound sequence and a async timer sequence together. I iterate over the elements of this merged sequence. For a stream event I start a a handle task for that stream, if a timer event occurs it checks how many streams are open and if the last stream to close was long enough ago. If so then it exits the loop and the channel is closed.

I also merge a gracefulShutdown AsyncStream with the two sequences above to implement graceful shutdown

@adam-fowler adam-fowler changed the base branch from main to 2.x.x February 2, 2024 17:37
Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e13bb01) 84.32% compared to head (77de690) 84.42%.

Files Patch % Lines
Sources/HummingbirdHTTP2/HTTP2Channel.swift 98.18% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            2.x.x     #371      +/-   ##
==========================================
+ Coverage   84.32%   84.42%   +0.10%     
==========================================
  Files          95       95              
  Lines        5211     5253      +42     
==========================================
+ Hits         4394     4435      +41     
- Misses        817      818       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…ent timeouts

Also include gracefulShutdown sequence to implement gracefulShutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant