mint icon indicating copy to clipboard operation
mint copied to clipboard

Don't send RST_STREAM when not needed

Open v0idpwn opened this issue 9 months ago • 2 comments

When the stream state is local_half_closed and an end_stream flag is received, the stream can be terminated normally without RST_STREAM.

Closes #433.

I still didn't work on integration tests, and while current tests kind of cover this feature, I'll add a specific test for it.

v0idpwn avatar Apr 30 '24 02:04 v0idpwn

Pull Request Test Coverage Report for Build e6a3aac052f01725352df867c357cb80818e034f-PR-434

Details

  • 9 of 12 (75.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 87.766%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/mint/http2.ex 9 12 75.0%
<!-- Total: 9 12
Totals Coverage Status
Change from base Build cb43462e784e1d34215bc9da44bd4a25d0a9a5c1: -0.1%
Covered Lines: 1277
Relevant Lines: 1455

💛 - Coveralls

coveralls avatar Apr 30 '24 02:04 coveralls

This is a WIP, I'm opening for reference. I need to double check some corner cases and maybe my implementation can be simplified.

v0idpwn avatar Apr 30 '24 02:04 v0idpwn

Also it looks like CI is failing for totally unrelated reasons™️

v0idpwn avatar May 09 '24 21:05 v0idpwn

Also it looks like CI is failing for totally unrelated reasons™️

Yes Totally Unrelated™, no worries

I'm not 100% happy with the implementation because I think it's a bit dirty, but it solves the problem and is pretty small, so I'm opening the PR.

@v0idpwn is this ready to review?

whatyouhide avatar May 10 '24 12:05 whatyouhide

Yes!

v0idpwn avatar May 10 '24 12:05 v0idpwn

Woot woot!

whatyouhide avatar May 10 '24 13:05 whatyouhide