Skip to content

fix(etag,pretty-json): cancel the discarded response body - #5606

Merged
yusukebe merged 2 commits into
mainfrom
fix/stream-cancel
Nov 4, 2026
Merged

yusukebe merged 2 commits into
mainfrom
fix/stream-cancel

Conversation

@yusukebe

@yusukebe yusukebe commented Nov 4, 2026

Copy link
Copy Markdown
Member

Both middleware replace c.res after reading a clone, which leaves the original teed branch open. Cancel it so that the producer is released.

Fixes #5602, fixes #5603.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.15%. Comparing base (c91b60a) to head (f4f5a95).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5606   +/-   ##
=======================================
  Coverage   80.15%   80.15%           
=======================================
  Files         150      150           
  Lines       10565    10567    +2     
  Branches     2353     2353           
=======================================
+ Hits         8468     8470    +2     
  Misses       2097     2097           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

Bundle size check

main (e1dd588) #5606 (b59036c) +/-
Bundle Size (B) 19,158B 19,158B 0B
Bundle Size (KB) 18.71K 18.71K 0K

Compiler Diagnostics (tsc)

main (e1dd588) #5606 (b59036c) +/-
Files 83 83 0
Lines 59,458 59,458 0
Identifiers 60,635 60,635 0
Symbols 106,536 106,536 0
Types 163,092 163,092 0
Instantiations 414,023 414,023 0
Memory used 208,607K 208,769K +162K
I/O read 0.01s 0.01s 0s
I/O write 0s 0s 0s
Parse time 0.31s 0.32s +0.01s
Bind time 0.11s 0.11s 0s
Check time 1.28s 1.33s +0.05s
Emit time 0s 0s 0s
Total time 1.7s 1.76s +0.06s

Compiler Diagnostics (typescript-go)

main (e1dd588) #5606 (b59036c) +/-
Files 215 215 0
Lines 121,020 121,020 0
Identifiers 107,363 107,363 0
Symbols 181,168 181,168 0
Types 262,348 262,348 0
Instantiations 621,588 621,588 0
Memory used 154,079K 154,092K +13K
Memory allocs 1,784,083 1,784,167 +84
Config time 0.001s 0.001s 0s
BuildInfo read time 0s 0s 0s
Parse time 0.099s 0.115s +0.016s
Bind time 0s 0s 0s
Check time 0.462s 0.467s +0.005s
Emit time 0.004s 0.005s +0.001s
Changes compute time 0.034s 0.037s +0.003s
Total time 0.636s 0.666s +0.03s

Reported by octocov

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

HTTP Performance Benchmark

Framework Runtime Average Ping Query Body
hono (origin/main) bun 76,131.20 90,501.61 70,999.68 66,892.32
hono (current) bun 77,290.29 91,117.97 74,169.12 66,583.77
Change +1.52% +0.68% +4.46% -0.46%

@yusukebe
yusukebe merged commit a512ba4 into main Nov 4, 2026
22 checks passed
@yusukebe
yusukebe deleted the fix/stream-cancel branch November 4, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant