Error 400 when upgrade header is not in lowercase - #116
Conversation
- Shared strict request/response HTTP header parser. - Response header-count limit. - Any Transfer-Encoding is rejected for 101 responses, but ignored for non-101 responses. - Shared 16 KiB handshake limit renamed to _http_max_size and applied to client responses. - Added unit and functional coverage for all new behavior.
Merging this PR will degrade performance by 57.9%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ❌ | test_bench_echo[64] |
346.4 ms | 1,082.1 ms | -67.99% |
| ❌ | test_bench_echo[8192] |
552.3 ms | 1,362.8 ms | -59.48% |
| ❌ | test_bench_echo[32768] |
1.1 s | 2 s | -42.47% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing bugfix/upgrade_icmp (5eae6ff) with master (9a99eae)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #116 +/- ##
==========================================
+ Coverage 91.86% 92.98% +1.12%
==========================================
Files 19 19
Lines 2777 2796 +19
Branches 156 156
==========================================
+ Hits 2551 2600 +49
+ Misses 181 151 -30
Partials 45 45 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@codspeedbot why it is slower? |
Short answer: it isn't slower. The reported 57.9% degradation is a measurement-environment artifact, not a real regression. What happened The base and head runs were measured on different hardware:
The Intel runner is roughly 3x faster than the AMD one for these benchmarks, and the base run happened to land on it. That single unlucky pairing produces the whole diff. Evidence Looking at recent
Re-comparing this PR against the previous master commit The diff itself also supports this: all the changes in Why this keeps happening here Two compounding factors:
If you want these numbers to be actionable rather than advisory, the options are, in order of effectiveness:
No code changes were made — there is nothing to fix in this PR. You can safely acknowledge these three regressions on CodSpeed. Summary
Learnings updated. See what CodSpeed remembers about this repository. Was this response helpful? React with 👍 or 👎 to help us improve CodSpeedBot. |
Also tighten up some loose end.
Fixes #115