Repository navigation
Close abandoned HTTP/1 connections after request errors - #397
Conversation
|
@ogourment could you remove the first 9 commits from this PR and leave only your change? |
0b7d7e7 to
ec2f2e3
Compare
|
Rebased onto current main; the PR now contains only the single fix commit. The full Finch suite passed again (231 tests, one skipped), and formatting passed. |
…/1 connections mint 1.11.0 leaves an HTTP/1 connection open after a receive timeout and Finch 0.23.0 returns it to its pool, so the next request on it waits behind the unanswered one and times out. Declare mint ~> 1.10, lock 1.10.1 and hpax 1.0.4 here and in both examples, ignore the three mint advisories with their reasons until a Finch release includes sneako/finch#397, add a regression test that fails on 1.11.0 and passes on 1.10.1, and say so in the CHANGELOG and release notes.
|
We hit this in production as well (non idempotent POSTs: the second request reaches the server, then the caller crashes with the mint_version = System.get_env("MINT", "1.11.0")
Mix.install([{:finch, "0.23.0"}, {:mint, mint_version, override: true}])
# One connection HTTP/1 server: answers request 1 after 300ms, then the next ones at once
{:ok, listen} = :gen_tcp.listen(0, [:binary, active: false, reuseaddr: true])
{:ok, port} = :inet.port(listen)
spawn(fn ->
{:ok, socket} = :gen_tcp.accept(listen)
Enum.reduce_while(Stream.iterate(1, &(&1 + 1)), nil, fn n, _ ->
case :gen_tcp.recv(socket, 0) do
{:ok, _} ->
IO.puts("server: got request #{n}")
if n == 1, do: Process.sleep(300)
body = "response #{n}"
:gen_tcp.send(socket, "HTTP/1.1 200 OK\r\ncontent-length: #{byte_size(body)}\r\n\r\n#{body}")
{:cont, nil}
_ ->
{:halt, nil}
end
end)
end)
{:ok, _} = Finch.start_link(name: MyFinch)
req = Finch.build(:get, "http://127.0.0.1:#{port}/")
IO.inspect(Finch.request(req, MyFinch, receive_timeout: 100), label: "request 1")
IO.inspect(Finch.request(req, MyFinch), label: "request 2")
Elixir 1.19.4, OTP 27, finch 0.23.0, nimble_pool 1.1.0. We pin |
| metadata = Map.put(metadata, :error, wrapped_error) | ||
| Telemetry.stop(:send, start_time, metadata, extra_measurements) | ||
| {:error, %{conn | mint: mint}, wrapped_error, acc} | ||
| {:error, close(%{conn | mint: mint}), wrapped_error, acc} |
There was a problem hiding this comment.
Thank you looking in to this issue.
Doesn't this proposed change re-introduce the issue that Eric fixed in #392 ?
There was a problem hiding this comment.
No, #392 was about terminate_worker/3, which runs in the pool process, so a slow TLS close blocked every checkout. This close is in Conn.request/8, inside the NimblePool.checkout!/4 function, which runs in the caller. Only that caller waits, holding its own connection.
Mint did the same close in the caller on a recv/3 timeout before 1.11.0, and Finch already closes there on request_timeout and {:halt, acc}.
|
@sneako I will release Mint v1.10.2 with only the CVE fixes excluding the fix to connection closing on timeouts. This means users can get a release of Mint with the CVE fixes without breaking Finch. But it would be great if we could also get a Finch release with the fix in this PR soon. |
|
I'll prepare the release right now, thanks Eric! |
|
Thanks Nico! |
|
v0.24.0 is live now, thanks everybody ❤️ |
mint 1.11 no longer closes an HTTP/1 connection on a receive timeout. finch 0.23 then returned the connection to the pool with the abandoned response still in flight, and the next request on it crashed with a CaseClauseError. finch 0.24.0 closes the connection instead (sneako/finch#397). Only the lock changes here; the next commit raises the requirement. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The previous commit moves the lock to finch 0.24.0, but a library's lock never reaches the applications that depend on it. With mix.exs still accepting ~> 0.18, an application on mint 1.11 could resolve finch 0.23 and hit the CaseClauseError that 0.24.0 fixes (sneako/finch#397), so the requirement rises with the lock. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…agents (#109) * chore: scaffold req_managed_agents_host package (req_managed_agents ~> 0.9, Apache-2.0) * feat(host): Store behaviour + ETS impl + conformance suite * feat(host): DETS store — durable locator surviving restart * feat(host): durable Locator + Record struct over Store * feat(host): Config struct — validated, struct-first; carries Agent/Environment handles (v0.9) * feat(host): SessionServer — fresh, reattach, idle-detach * feat(host): SessionSupervisor + Registry + Application * feat(host): Host.send_message/3 facade + durable-restart matrix; SessionServer restart: :temporary * fix(host): thread Config.timeout_ms and metadata through the turn/record (wire documented surface) * ci: GitHub Actions parity with RMA (test matrix, quality, dialyzer, hygiene gate, tag-publish) - ci.yml: Elixir 1.16/1.18/1.20 x OTP 26/27/29 test matrix; quality job (format, credo --strict, hex.audit, docs --warnings-as-errors, hex.build); dialyzer with priv/plts PLT caching. No cowlib -> plain hex.audit (no allowlist wrapper); no :live tests -> credential-free. - hygiene-gate.yml + .hygiene/: scan tracked files for MIM-/BIAI- ids and forbidden paths (docs/superpowers, .superpowers). Scanner copied verbatim from RMA. - publish.yml: tag-triggered hex.publish (prod environment, HEX_API_KEY). - mix.exs: dialyzer/0 (priv/plts, plt_add_apps [:mix, :ex_unit]); docs extras add CHANGELOG.md + LICENSE so README's LICENSE link resolves. * feat(host): persist provider transcripts under a sibling {:transcript, external_id} key RMA 0.10 dep bump. Providers emitting SessionResult.transcript get it stored through the existing Store behaviour; server-held providers (nil transcript) are byte-identical no-ops. Write failure logs and degrades, never fails a turn. * feat(host): re-inject persisted transcripts on reattach; v0.2.0 Local-provider conversations survive full restarts: the sibling-key transcript rides back in as history:, RMA seeds it verbatim, and the #66 seam delivers the new prompt on top. The flagship-shaped DETS proof covers kill-everything-reopen. * style pass: docs/comments/naming consistency (post Z-program) - README: correct the installation version pin (~> 0.1.0 -> ~> 0.2.0), stale since the 0.2.0 release. - SessionServer.run_turn/2: doc-note the history_opts/provider_opts concatenation order — history_opts precedes cfg.provider_opts, so a persisted transcript's history: shadows an explicit provider_opts[:history] a caller supplies (the opposite of agent_opts' never-shadow behavior for absent handles). - StubLocalProvider: moduledoc the shared global recorder — opened_with/0 is backed by a single module-global Agent shared by every test in the suite, so under async: true, calls interleave across test modules. * deps: mint 1.9.3 — EEF-CVE-2026-58229 + EEF-CVE-2026-59249 (HTTP/1 chunk-size response smuggling) * chore(hygiene): refresh .hygiene/ guardrails to the visibility-split scanner Refreshes the installed `.hygiene/` copy from the control-plane repo's fixed guardrails set: the scanner now prefers `jj file list` in a jj workspace instead of git's index, judges content matches by what `grep` wrote rather than what `xargs` returned (the old construct silently dropped violations once the file list split into more than one xargs batch), and splits content patterns by repo visibility (`forbidden-content.txt` everywhere, `forbidden-content-public.txt` in public-bound repos only). Also installs the missing `.githooks/pre-push` hook and the `docs/aws-ci-setup.md` forbidden-path pattern, and adds the `.claude/worktrees/` and ops-docs `.gitignore` fragments this repo hadn't picked up yet. The copied tooling's own comments, which named an internal repo by name as an example measurement in `.githooks/pre-push` and `.hygiene/preflight-scan.sh`, are already sanitized upstream of this refresh. Refreshed scanner: 0 violations. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * deps: update mint to 1.11.0, past six published advisories mint 1.9.3 (via req -> finch) is affected by EEF-CVE-2026-82672, EEF-CVE-2026-82728, EEF-CVE-2026-82729, EEF-CVE-2026-91043, EEF-CVE-2026-92103 and EEF-CVE-2026-94194, all fixed by 1.10.2, so the quality job's hex.audit step fails on them. 1.11.0 is the latest release; finch 0.23.0 accepts it (~> 1.8), and hpax moves to 1.1.0 with it. Both require Elixir ~> 1.15, inside the ~> 1.16 floor. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * deps: update finch to 0.24.0 for mint 1.11 mint 1.11 no longer closes an HTTP/1 connection on a receive timeout. finch 0.23 then returned the connection to the pool with the abandoned response still in flight, and the next request on it crashed with a CaseClauseError. finch 0.24.0 closes the connection instead (sneako/finch#397), so it moves with mint. It requires Elixir ~> 1.15, inside the ~> 1.16 floor. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore: require Elixir 1.18; v0.3.0 Elixir 1.18 or later is now required (was 1.16). CI tests Elixir 1.18 / OTP 27 and Elixir 1.20 / OTP 29; the 1.16 / OTP 26 leg is dropped. - mix.exs: elixir ~> 1.16 -> ~> 1.18; version 0.2.0 -> 0.3.0. - CHANGELOG: v0.3.0 entry. - README: install snippet ~> 0.3.0. No code was conditional on Elixir or OTP version, so none was removed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore: require Elixir 1.20 and req_managed_agents ~> 0.11.0 req_managed_agents 0.11 raises its own floor to Elixir 1.20, and the Hex resolver does not enforce a dependency's elixir: requirement — so retargeting the dependency range without raising this package's own floor would silently hand 1.18/1.19 users a build Elixir warns about but CI never checks. Both floors now move together. - mix.exs: elixir ~> 1.18 -> ~> 1.20; req_managed_agents ~> 0.10 -> ~> 0.11.0 (narrowed to the exact minor, not just the range, so the next breaking req_managed_agents minor can't leak in the same way). - CI matrix: 1.18/OTP 27 + 1.20/OTP 29 -> 1.20/OTP 28 + 1.20/OTP 29, mirroring req_managed_agents' own matrix. - CHANGELOG: v0.3.0 rewritten for the new floor and dependency range. No API or behaviour change in this package; req_managed_agents 0.11's breaking changes are confined to AgentCore harness provisioning. Verified against a req_managed_agents 0.11.0 working tree via a temporary path override (not committed): 45/45 tests pass. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * chore: move req_managed_agents into req_managed_agents/ Co-Authored-By: Codex <noreply@openai.com> * chore: move req_managed_agents_host into req_managed_agents_host/ Co-Authored-By: Codex <noreply@openai.com> * ci: test both packages from the root workflow Co-Authored-By: Codex <noreply@openai.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Codex <noreply@openai.com>
Finch 0.24.0 closes an HTTP/1 connection after a request or response error instead of returning it to its pool (sneako/finch#397), so mint 1.11.0's open-after-timeout connection is no longer reused. The lock and the example projects' locks move to finch 0.24.0, mint 1.11.0 and hpax 1.1.0; mix.exs requires finch ~> 0.24 so a consumer cannot resolve Finch 0.23 with mint 1.11. The three mint advisories leave .audit_ignore and the Known limits entry leaves the release notes. Refs deepfates#263
Since Mint 1.11 (taken on 2026-09-30 for three CVEs) a receive timeout no
longer closes the connection. Finch 0.23 then returned it to the pool, and
the next request on it read the abandoned response and crashed with
`CaseClauseError {:status, stale_ref, 200}`. In production the GIndex movie
root (/1:/Filmes/) failed that way on every scan, behind slow workers.dev
endpoints; any Finch client could hit it after a timeout.
Finch 0.24.0 closes HTTP/1 connections after request or response errors
before checking them in (sneako/finch#397). A contract test reproduces the
production error on Finch 0.23 (one-connection pool, a held response that
outlives the receive timeout, then a second request) and passes on 0.24.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, and 36 others Fixes all security advisories reported by `mix hex.audit` (bandit, lazy_html, phoenix_live_view, swoosh, mint, hpax, plug_crypto, decimal, hackney). - telemetry_metrics constraint widened to ~> 1.0 (no breaking changes) - httpoison overridden to ~> 3.0: :pomodoro pins httpoison ~> 2.0 (unused there), which held hackney on 1.x with open CVEs - gettext stays on 0.26: torch 6.0 requires gettext ~> 0.16 - scenic_widget_contrib (git) a6fd6b5 → 6b14a29 Direct Dependencies: bandit 1.12.3 → 1.14.0 diff: https://diff.hex.pm/diff/bandit/1.12.3..1.14.0 changelog: https://hexdocs.pm/bandit/changelog.html#1-14-0-26-oct-2026 - Security (1.14.0): many HTTP/2, HTTP/1 and WebSocket DoS/smuggling fixes: enforce HTTP/2 receive windows (CVE-2026-108525, GHSA-pxfw-2r8w-g3jv), limit concurrent streams (GHSA-fmr8-qrvr-4ww5), limit header list size (CVE-2026-109584, GHSA-ggpf-wvx5-f4h8), keep HPACK state on stream errors (CVE-2026-111103, GHSA-q48c-59mm-jx3c), plus CVE-2026-115269, -108529, -110499, -111101, -114216 (chunk-extension request smuggling), -113436, -114213, -110314 - Security (1.13.0): validate authority of absolute/authority-form targets (GHSA-v53v-9hvg-37jf); bound HTTP/2 sends blocked on a send window (GHSA-69m6-wcv4-rwcf) - Security (1.12.5): bound/cancel HTTP/2 sends blocked on the connection window (GHSA-xj8g-532w-jv94); validate HTTP/2 header values for CR/LF/NUL (GHSA-x3gh-xhj4-3vq8) - Behaviour changes (1.14.0): advertises HTTP/2 `max_concurrent_streams` 500 and `max_header_list_size` 262144 by default; `read_body` can return more than `:length` bytes on HTTP/2; stricter HTTP/1 request-line parsing (e.g. `http://host:80?a=b` now gets 400) - 1.13.0: new `compress_chunked` option (gzip/zstd); requires Thousand Island 1.6 and hpax 1.1; idle connections that send nothing are closed silently instead of getting 408. Many RFC-conformance fixes - 1.12.4: rejects multiple Host headers and malformed header lines; disallows transfer-encoding on HTTP/1.0 elixir_make 0.10.0 → 0.10.1 diff: https://diff.hex.pm/diff/elixir_make/0.10.0..0.10.1 changelog: https://hexdocs.pm/elixir_make/changelog.html#v0-10-1-2026-10-24 - Increase max header length - Surface the real download error instead of a misleading file-not-found esbuild 0.10.0 → 0.10.1 diff: https://diff.hex.pm/diff/esbuild/0.10.0..0.10.1 changelog: https://hexdocs.pm/esbuild/changelog.html#v0-10-1-2026-10-19 - Don't try to compute the target if a `:path` is configured finch 0.20.0 → 0.24.0 diff: https://diff.hex.pm/diff/finch/0.20.0..0.24.0 changelog: https://hexdocs.pm/finch/changelog.html#v0-24-0-2026-09-29 - Breaking (0.22.0): requires Elixir v1.15. Removes the deprecated six-argument `Finch.request` function, old pool configuration options and the `:max_idle_time_exceeded` telemetry event (sneako/finch#348). Errors are standardized as `Finch.error()`, `Finch.HTTPError` and `Finch.TransportError` (sneako/finch#341). Pool metrics now use `Finch.Pool.t()` structs as keys (sneako/finch#342, sneako/finch#368) - 0.22.0: new `:http2` config section, `http+unix://` schemes, pool tagging, dynamic pool APIs (`Finch.start_pool/3`, `Finch.find_pool/2`), `:pool_strategy`, and runtime pool resizing - 0.24.0: support for the HTTP `QUERY` method (sneako/finch#396). HTTP/1 connections are now closed after request/response errors, so stale response refs can't leak into later requests with Mint 1.11 (sneako/finch#397) - 0.21.0: idle HTTP/1 pools are no longer terminated while connections are in use (sneako/finch#292). Unsupported HTTP/2 server push is disabled to avoid crashes (sneako/finch#333) httpoison 2.2.3 → 3.0.0 diff: https://diff.hex.pm/diff/httpoison/2.2.3..3.0.0 changelog: https://github.com/edgurgel/httpoison/blob/main/CHANGELOG.md#300-2026-06-14 - Security: upgrade to hackney 4.0, "which fixes several CVEs (atom-table exhaustion via URL schemes, HTTP header injection, WebSocket buffer limits and more)" - Breaking: redirects are now followed inside hackney, so `HTTPoison.MaybeRedirect` is no longer returned (the struct is kept only for backward compatibility) - Breaking: basic auth over plain HTTP now requires the `insecure_basic_auth: true` option - Response bodies now come straight from hackney; `max_body_length` is trimmed on HTTPoison's side - `ssl: [verify: :verify_none]` disables certificate verification again; empty chunks are skipped when streaming a request body lazy_html 0.1.12 → 0.1.13 diff: https://diff.hex.pm/diff/lazy_html/0.1.12..0.1.13 changelog: https://github.com/dashbitco/lazy_html/blob/main/CHANGELOG.md#v0113-2026-09-25 - Security: fixed `to_html/2` functions to escape `<style>` and `<script>` content inside SVG and MathML (CVE-2026-92106, GHSA-8rqp-v692-v82q) - Added `LazyHTML.css_path/1` for generating queryable document-relative paths for selections logger_backends 1.0.0 → 1.0.1 diff: https://diff.hex.pm/diff/logger_backends/1.0.0..1.0.1 changelog: https://github.com/elixir-lang/logger_backends/blob/main/CHANGELOG.md#v101 - Fix warnings on Elixir 1.20 machete 0.3.11 → 0.3.12 diff: https://diff.hex.pm/diff/machete/0.3.11..0.3.12 changelog: no changelog found (compare: mtrudel/machete@0.3.11...0.3.12) - From the commit list: add number matcher (mtrudel/machete#74); more README examples; dev-dependency bumps phoenix 1.8.9 → 1.8.16 diff: https://diff.hex.pm/diff/phoenix/1.8.9..1.8.16 changelog: https://hexdocs.pm/phoenix/changelog.html#v1-8-16-2026-10-20 - [phoenix.js] Fix a lot of connection handling races (phoenixframework/phoenix#6867). Fix asynchronous transport close tearing down the replacement transport (phoenixframework/phoenix#6852) - Work around Mobile Chrome 149+ not reconnecting after a tab is resumed (phoenixframework/phoenix#6804) - [Channels] Fix channel messages being dropped when they arrive without a join_ref (introduced in 1.8.3) (phoenixframework/phoenix#6800) - Fix Phoenix crashing on boot if Mix is available but not started (phoenixframework/phoenix#6789). Fix spurious "must restart your server" code reloader messages (phoenixframework/phoenix#6753) - Enhancements: `max_channels_per_transport` option in `Phoenix.Endpoint.socket/3`; plugs with options in `pipe_through` (phoenixframework/phoenix#6755); raise when `:router` given to `use Phoenix.VerifiedRoutes` is not a compile-time literal (phoenixframework/phoenix#6806) phoenix_live_dashboard 0.8.7 → 0.9.1 diff: https://diff.hex.pm/diff/phoenix_live_dashboard/0.8.7..0.9.1 changelog: https://github.com/phoenixframework/phoenix_live_dashboard/blob/main/CHANGELOG.md#v091-2026-08-31 - Breaking (0.9.0): requires Phoenix LiveView 1.0+ and Elixir 1.15+ - 0.9.0: compact nested list view for application supervision trees; per-repo Ecto Stats info module override via `{repo, info_module}` in `:ecto_repos`; `refresh_interval` reporting option for charts; process labels shown in application/process views - 0.9.1: skip Ecto repos that cannot be resolved to an extras module phoenix_live_reload 1.6.2 → 1.7.0 diff: https://diff.hex.pm/diff/phoenix_live_reload/1.6.2..1.7.0 changelog: https://hexdocs.pm/phoenix_live_reload/changelog.html#1-7-0-2026-07-29 - Add JavaScript helper function to capture keyboard shortcuts to open HEEx components - Forward log events to window for custom behaviour phoenix_live_view 1.2.7 → 1.2.13 diff: https://diff.hex.pm/diff/phoenix_live_view/1.2.7..1.2.13 changelog: https://hexdocs.pm/phoenix_live_view/changelog.html#v1-2-13-2026-10-20 - Security (1.2.9): CVE-2026-64941, fix open redirect in `redirect/2` via ASCII tab, LF and CR - 1.2.8: client-side navigation can be cancelled via `phx:before-navigate` + `event.preventDefault()` (phoenixframework/phoenix_live_view#4332). Upload tokens are signed as `:local` so node names are not included in them - 1.2.10: many upload fixes (auto uploads with `max_entries`, testing multi-entry uploads, cancelling external uploads on navigation). New `Phoenix.LiveView.navigation_type/2` (phoenixframework/phoenix_live_view#4393). `phx-hook` can be updated dynamically (phoenixframework/phoenix_live_view#4153) - 1.2.11–1.2.12: stale diffs discarded on rejoin (phoenixframework/phoenix_live_view#4405); LiveComponent async tasks cancelled on removal (phoenixframework/phoenix_live_view#4401); lock handling for LiveComponents in nested LiveViews fixed (phoenixframework/phoenix_live_view#4444) - 1.2.13: more upload/form-recovery fixes. LiveView socket options are forwarded to `use Phoenix.Socket` (phoenixframework/phoenix_live_view#4470) swoosh 1.19.8 → 1.29.0 diff: https://diff.hex.pm/diff/swoosh/1.19.8..1.29.0 changelog: https://hexdocs.pm/swoosh/changelog.html#1-29-0 - Security (1.26.3): fix URL path injection via unencoded sender address in MsGraph adapter (GHSA-754j-98wh-57rf / CVE-2026-54893) - Security-ish (1.25.1): escape email content in the mailbox preview UI (swoosh/swoosh#1124) - 1.21.0: bump Elixir requirement to 1.16, Erlang OTP to 26 - New adapters: Resend (1.20.0), MailerSend (1.22.0), Azure Communication Services (1.24.0), `Swoosh.Adapters.Sandbox` (1.25.0), Mailpit (1.26.0), AhaSend (1.27.0), TurboSMTP (1.28.0), authenticated MailChannels Email API (1.29.0) - 1.23.0: `deliver/1` and `deliver/2` are overridable in `Swoosh.Mailer` (swoosh/swoosh#1109). 1.25.2: runtime config takes priority for Mailer (swoosh/swoosh#1134). 1.25.3: supports hackney < 5.0 (swoosh/swoosh#1132) tailwind 0.5.1 → 0.5.2 diff: https://diff.hex.pm/diff/tailwind/0.5.1..0.5.2 changelog: https://hexdocs.pm/tailwind/changelog.html#v0-5-2-2026-10-24 - Allow larger response headers when downloading Tailwind (fixes `{:header_too_long, {:max, 10240}}` on OTP 27+) - Fix typo in error message telemetry_metrics 0.6.2 → 1.2.0 diff: https://diff.hex.pm/diff/telemetry_metrics/0.6.2..1.2.0 changelog: https://github.com/beam-telemetry/telemetry_metrics/blob/main/CHANGELOG.md#120 - 1.0.0: "No changes. API is considered stable." The changelog lists no breaking changes for the major bump - 1.1.0: support for measurements as the second argument of the keep/drop callback - 1.2.0: support for functions in `tags` (this supersedes `tag_values`); assorted optimizations Transitive Dependencies: boundary 0.10.4 → 0.11.0 — diff: https://diff.hex.pm/diff/boundary/0.10.4..0.11.0 · changelog: https://github.com/sasa1977/boundary/blob/master/CHANGELOG.md#0110 — `exports: all` now exports all exports of sub-boundaries; fixed a crash in the visualize funs task certifi 2.15.0 → 2.18.0 — diff: https://diff.hex.pm/diff/certifi/2.15.0..2.18.0 · changelog: https://hexdocs.pm/certifi/changelog.html#2-18-0-2026-10-23 — Mozilla CA bundle refreshes (latest: curl's 2026-10-20 bundle); drops distrusted Entrust and emSign C1/C3/G3 roots circular_buffer 1.0.0 → 1.1.0 — diff: https://diff.hex.pm/diff/circular_buffer/1.0.0..1.1.0 · changelog: https://hexdocs.pm/circular_buffer/changelog.html#v1-1-0 — adds CircularBuffer.new/2 from an enumerable, max_size/1 and zero-length buffers; ~13% faster insertion on overflow crontab 1.2.0 → 1.2.1 — diff: https://diff.hex.pm/diff/crontab/1.2.0..1.2.1 · changelog: https://github.com/maennchen/crontab/releases/tag/v1.2.1 — fix year field parse failure on invalid input (maennchen/crontab#173); fix Elixir 1.20 warnings decimal 2.4.1 → 3.2.0 — diff: https://diff.hex.pm/diff/decimal/2.4.1..3.2.0 · changelog: https://github.com/ericmj/decimal/blob/main/CHANGELOG.md#v320-2026-10-10 — security: fixes CVE-2026-32686 (3.0.0, decimal128 limits on by default) and CVE-2026-97853 (3.1.2, round/3 memory exhaustion); BREAKING 3.0 defaults: precision 34, parse/cast reject >34 digits or |exp| >6144; 3.2.0 is much faster and fixes many rounding bugs ecto 3.13.6 → 3.14.2 — diff: https://diff.hex.pm/diff/ecto/3.13.6..3.14.2 · changelog: https://hexdocs.pm/ecto/changelog.html#v3-14-2-2026-08-14 — UUIDv7 support, Changeset.reorder_assoc/2, :replace_changed upserts, :on_writable_violation; requires decimal v3; redacts repo config from SASL progress reports ecto_sql 3.13.5 → 3.14.0 — diff: https://diff.hex.pm/diff/ecto_sql/3.13.5..3.14.0 · changelog: https://hexdocs.pm/ecto_sql/changelog.html#v3-14-0-2026-05-19 — table modifiers (e.g. UNLOGGED), Safe Ecto Migration guides, fragment tuple sources, labeled sandbox owner process ecto_sqlite3 0.22.0 → 0.26.0 — diff: https://diff.hex.pm/diff/ecto_sqlite3/0.22.0..0.26.0 · changelog: https://github.com/elixir-sqlite/ecto_sqlite3/blob/main/CHANGELOG.md#v0260 — requires decimal ~> 3.0, ecto/ecto_sql ~> 3.14 and exqlite ~> 0.40; adds check constraints and table :modifiers; fixes SQL generation precedence (elixir-sqlite/ecto_sqlite3#182) exqlite 0.33.1 → 0.43.0 — diff: https://diff.hex.pm/diff/exqlite/0.33.1..0.43.0 · changelog: https://hexdocs.pm/exqlite/changelog.html#v0-43-0 — SQLite 3.51.1 → 3.54.1; adds cancel/1, set_busy_timeout/2 and authorizer support; fixes cancel/busy-handler deadlocks; no longer forces journal mode unless specified (0.34.0) h2 (new) 0.12.5 — hex: https://hex.pm/packages/h2/0.12.5 — HTTP/2 protocol library for Erlang; pulled in by hackney 4.x, which hands its HTTP/2 stack to erlang_h2 (also needed by webtransport) hackney 1.25.0 → 4.9.1 — diff: https://diff.hex.pm/diff/hackney/1.25.0..4.9.1 · changelog: https://github.com/benoitc/hackney/blob/master/NEWS.md#491---2026-10-26 — security: 4.0.1 fixes 10 CVEs (CVE-2026-47066…47076: SSRF bypass, CRLF injection, atom exhaustion, unbounded buffers); 4.9.0 fixes a CA-pinning bypass and an incomplete CVE-2026-47076 fix, adds max_body_size (512 MiB default); BREAKING majors: process-per-connection (2.0), body returned in the response tuple (3.0), HTTP/2/3 moved to h2/quic and metrics removed (4.0) hpax 1.0.3 → 1.1.0 — diff: https://diff.hex.pm/diff/hpax/1.0.3..1.1.0 · changelog: https://github.com/elixir-mint/hpax/blob/main/CHANGELOG.md#v110 — security: 1.0.4 fixes CVE-2026-58226 (GHSA-jj2p-32j7-whj2) by capping unbounded HPACK integers; 1.1.0 adds protocol_resize/2 and returns errors instead of raising on malformed input idna 6.1.1 → 7.1.0 — diff: https://diff.hex.pm/diff/idna/6.1.1..7.1.0 · changelog: https://github.com/benoitc/erlang-idna/blob/master/CHANGELOG — Unicode 17.0.0; drops unicode_util_compat (Erlang >= 20 only); fixes recursive UTS-46 character mapping mint 1.7.1 → 1.11.0 — diff: https://diff.hex.pm/diff/mint/1.7.1..1.11.0 · changelog: https://github.com/elixir-mint/mint/blob/main/CHANGELOG.md#v1110 — security: fixes across 1.9.0–1.11.0 for HTTP/1 smuggling/CRLF injection and HTTP/1+HTTP/2 memory/CPU exhaustion (CVE-2026-56810, -58229, -59246, -59249, -82672, -82728, -82729, -91043, -92103, -94194, plus 4 GHSAs in 1.9.0); 1.8.0 raises default HTTP/2 receive windows muontrap 1.6.1 → 1.8.0 — diff: https://diff.hex.pm/diff/muontrap/1.6.1..1.8.0 · changelog: https://hexdocs.pm/muontrap/changelog.html#v1-8-0 — adds :capture_stderr_only (1.7.0) and a MuonTrap.Daemon :wait_for option (1.8.0) parse_trans 3.4.1 → 3.4.2 — diff: https://diff.hex.pm/diff/parse_trans/3.4.1..3.4.2 · changelog: no changelog found (compare: uwiger/parse_trans@3.4.1...d99fb36) — fixes an ambiguous auto-imported error/3 BIF warning; ex_doc docs and typo/CI cleanup phoenix_pubsub 2.2.0 → 2.4.1 — diff: https://diff.hex.pm/diff/phoenix_pubsub/2.2.0..2.4.1 · changelog: https://github.com/phoenixframework/phoenix_pubsub/blob/main/CHANGELOG.md#241-2026-10-08 — Phoenix.PubSub.Sender replaces custom dispatchers (now deprecated); :group_by Registry sharding option; fixes tracker state deletion phoenix_template 1.0.4 → 1.1.0 — diff: https://diff.hex.pm/diff/phoenix_template/1.0.4..1.1.0 · changelog: https://hexdocs.pm/phoenix_template/changelog.html#1-1-0 — adds :html_formats option; fixes warnings on recent Elixir; exports :locals_without_parens for embed_templates plug_crypto 2.2.0 → 2.2.1 — diff: https://diff.hex.pm/diff/plug_crypto/2.2.0..2.2.1 · changelog: https://hexdocs.pm/plug_crypto/changelog.html#v2-2-1-2026-10-23 — security: stops the secret key base from being written to logs on bad args (CVE-2026-105963, GHSA-ffw9-w85g-f2vh) quic (new) 2.1.3 — hex: https://hex.pm/packages/quic/2.1.3 — pure Erlang QUIC implementation (RFC 9000); pulled in by hackney 4.x for HTTP/3 (also needed by webtransport) ring_logger 0.11.4 → 0.11.7 — diff: https://diff.hex.pm/diff/ring_logger/0.11.4..0.11.7 · changelog: https://hexdocs.pm/ring_logger/changelog.html#v0-11-7 — supports LoggerBackends; drops Elixir ≤ 1.14; fixes an OTP 28 hang in RingLogger.next over ssh sched_ex 1.2.0 → 1.2.1 — diff: https://diff.hex.pm/diff/sched_ex/1.2.0..1.2.1 · changelog: no changelog found (compare: SchedEx/SchedEx@1.2.0...1.2.1) — fixes a crash with the default timezone (SchedEx/SchedEx#62); bumps tzdata thousand_island 1.5.0 → 1.6.0 — diff: https://diff.hex.pm/diff/thousand_island/1.5.0..1.6.0 · changelog: https://hexdocs.pm/thousand_island/changelog.html#1-6-0-15-oct-2026 — new handshake_timeout option (default 5 s); acceptor no longer crashes on :emfile/:enfile or transient accept errors; adds status/1 and info/1 introspection tzdata 1.1.4 → 1.2.2 — diff: https://diff.hex.pm/diff/tzdata/1.1.4..1.2.2 · changelog: https://github.com/lau/tzdata/blob/master/CHANGELOG.md#122---2026-09-25 — hackney now optional (on OTP 25+ uses :httpc with OS CA certs) and hackney 4.x supported; ships tzdata 2026d; fixes an OTP 28 compile error and historical zone periods webtransport (new) 0.4.8 — hex: https://hex.pm/packages/webtransport/0.4.8 — WebTransport protocol for Erlang over HTTP/2 and HTTP/3; required by hackney 4.x (itself depends on h2 and quic) websock_adapter 0.5.9 → 0.6.0 — diff: https://diff.hex.pm/diff/websock_adapter/0.5.9..0.6.0 · changelog: https://github.com/phoenixframework/websock_adapter/blob/main/CHANGELOG.md#060-15-apr-2026 — default max_frame_size is now 10MB (was :infinity) (phoenixframework/websock_adapter#22)
Mint 1.11.0 keeps HTTP/1 connections open after a receive timeout. Finch currently returns the connection to its pool after abandoning the request. The next request can then encounter response messages belonging to the previous request and crash in
receive_response/8with aCaseClauseError.Close the HTTP/1 connection when request sending or response receiving fails, so an abandoned request cannot leave a reusable connection carrying its pending response. Normal completed requests retain existing pooling behavior.
The existing timeout regression test now uses a single connection and distinct request paths, asserting that the second request receives its own response. The test lockfile uses Mint 1.11.0 and its required HPAX 1.1.0.
Validation: full Finch suite passed (231 tests, 1 skipped); formatting passed. A downstream Req timeout-override regression reproduced the crash with Finch 0.23.0/Mint 1.11.0 and passed with this patch.