Cache urllib SSLContext to avoid repeated CA bundle parsing

NousResearch/hermes-agent · cluster 117880 · other

Data as of

Nothing open on GitHub. Fix merged in #118960. Check it covers your case.

The short answer

0open issues
0open PRs
5items grouped
Known?
Yes. 5 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #118960. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #118960. That is separate from the fix event.
Still open
Nothing open on GitHub.

These issues and PRs address a performance concern where the CA bundle is re-parsed on every Hermes-owned urllib request (~4 ms each). The proposed fix caches the SSLContext so the CA bundle is parsed only once per process.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #118960 perf(urllib): the CA bundle is parsed once per process, not per Hermes-owned request (#117880, salvage #117881)

    merged to main

    files: hermes_cli/urllib_security.py, tests/hermes_cli/test_urllib_security.py

3 PRs closed without merging

From the close comments: done elsewhere 1 · merged via another change 1 · superseded by another PR 1

  • #117881 perf(urllib): parse the CA bundle once instead of on every Hermes-owned request · done elsewhere → 1c95385, 966f746, #118960
  • #117896 fix: cache urllib SSLContext so CA bundle is parsed once per process · merged via another change → #117880, #117881
  • #119580 fix: cache urllib SSLContext so CA bundle is parsed once per process (closes #117880) · superseded by another PR → #72348, #117880
Closed issues · 1
  • Closed#117880Every Hermes-owned urllib request re-parses the whole CA bundle (~4 ms each)
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.40: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
other
Merged PRs
#118960
Closed issues
1
Attempts
3 PRs closed without merging
Fix link checked
22 Sep 2026

For your agent

The same facts, typed.