• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elixir-mint / mint
88%

Build:
DEFAULT BRANCH: main
Repo Added 11 Jun 2022 07:10AM UTC
Token xUOJjt5H7KcTvx6ikZQ7qWuMslrGKsjIE regen
Build 316 Last
Files 21
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • al/1.18
  • al/bump-ci
  • al/ci
  • al/client-settings
  • al/deps
  • al/elixir-1.10
  • al/elixir-1.11+
  • al/fix-leak
  • al/fix-tests
  • al/http2-logs
  • al/improve-defguard
  • al/modernize-ci
  • al/stream-docs
  • al/update-ci-versions
  • al/updates
  • allow-not-validating-target
  • allow_302_for_twitter_integration_test
  • andrea/code-coverage
  • andrea/dialyzer
  • andrea/fix-guard
  • andrea/new-ci-versions
  • chore/replace-deprecated-xref-exclude
  • clamp-tunnel-timeout
  • close_sockets_on_error
  • comp-time-optimization
  • configurable-test-ports
  • connect-tunnel-fixes
  • connection-docs-ref
  • contributing-and-testing-housekeeping
  • docs-for-open
  • dont-close-socket-on-recv-timeout
  • ericmj/deprecate-read-write
  • ericmj/fix-1xx-informational-response
  • ericmj/http2-connection-window-size
  • ericmj/http2-larger-default-windows
  • ericmj/inet4-option
  • ericmj/local-h2c-integration-tests
  • ericmj/support-elixir-1.12
  • ericmj/update-ubuntu
  • fix-cannot-build-docker-image-using-podman-compose
  • fix-dialyzer
  • fix-http1-tests-not-tagged-correctly
  • fix-incorrect-ci-badge
  • fix-warnings
  • fix/446-proxy-host-header
  • fix/http10-connect-tunnel
  • fix/humize_error_code_custom_error
  • http1-reason-phrase
  • http2-connect-target
  • https-tunnel-proxies
  • ip-address-match-fun
  • jv-default-store
  • jv-elixir-1-19
  • main
  • next_body_chunk
  • np/export-error-types
  • optimize-http/2-request-creation
  • patch-3
  • preserve_header_case
  • pvthuyen/add-support-for-cacerts-get
  • refs/heads/main
  • refs/pull/399/merge
  • refs/pull/407/merge
  • refs/pull/500/merge
  • rewrite-contributing-and-testing-doc
  • run-ci-against-erlang-27.1
  • stream-http1-headers
  • tunnel-target-identity
  • unnecessary-rst-stream-2
  • unsafe-proxy-opts
  • update-deps
  • use_local_http_bin_in_all_tests
  • whatyouhide/issue311
  • wm-decompression
  • wm-docker-compose
  • wm-recv-response
  • wrap-tunnel-errors

07 Sep 2026 11:20AM UTC coverage: 88.353% (+0.3%) from 88.097%
bfc6454f92ade5bb7afeede28b3f741378fc985c

push

github

web-flow
Close TCP sockets on errors in HTTP/1 (#502)

In some cases, when handling a failure, Mint would only set the conn
state to :closed but would not close the underlying socket. These
sockets stay open until the calling process that owns them exits, and
may therefore accumulate until resources are exhausted.

Every relevant %{conn | state: :closed} inside Mint.HTTP1 is replaced
with internal_close that in addition to setting the state also closes
the socket.

Tests that asserted closed conn now also assert that the socket is
closed. New tests that demonstrate the problem are added. They would
fail without the fix and they pass with the fix in place.

Fixes #501.

6 of 8 new or added lines in 1 file covered. (75.0%)

1502 of 1700 relevant lines covered (88.35%)

517.46 hits per line

Relevant lines Covered
Build:
Build:
1700 RELEVANT LINES 1502 COVERED LINES
517.46 HITS PER LINE
Source Files on main
  • Tree
  • List 21
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
bfc6454f... main Close TCP sockets on errors in HTTP/1 (#502) In some cases, when handling a failure, Mint would only set the conn state to :closed but would not close the underlying socket. These sockets stay open until the calling process that owns them exits, ... push 07 Sep 2026 11:21AM UTC web-flow github
88.35
42818023... close_sockets_on_error Fix line number in Dialyzer ignore list The lines shifted a bit by the changes in the previous commit. Pull #502 07 Sep 2026 11:19AM UTC xxdavid github
88.35
2ed27ca8... main Keep HTTP/1.0 CONNECT tunnel sockets open (#503) push 06 Sep 2026 04:53PM UTC web-flow github
88.1
0f779670... fix/http10-connect-tunnel Keep HTTP/1.0 CONNECT tunnel sockets open Pull #503 06 Sep 2026 04:52PM UTC nallwhy github
88.1
451f4634... close_sockets_on_error Close TCP sockets on errors in HTTP/1 In some cases, when handling a failure, Mint would only set the conn state to :closed but would not close the underlying socket. These sockets stay open until the calling process that owns them exits, and may... Pull #502 04 Sep 2026 03:33PM UTC xxdavid github
88.35
f930742f... main Fix tests (ops!) push 04 Sep 2026 09:57AM UTC whatyouhide github
88.09
75c8be1f... main Release v1.10.0 push 04 Sep 2026 09:45AM UTC whatyouhide github
88.09
bd2a4e75... main Merge commit from fork push 04 Sep 2026 09:39AM UTC web-flow github
88.09
19be5558... main Merge commit from fork push 04 Sep 2026 09:38AM UTC web-flow github
88.08
d996244f... main Support processing HTTP/1.1 headers as they arrive (#499) Co-authored-by: Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com> push 18 Aug 2026 03:31PM UTC web-flow github
88.16
See All Builds (248)

Badge your Repo: mint

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc