published fresh until

Why does Ollama pull time out on one network?

Summary If Ollama reports TLS handshake timeouts on the same network pattern described in the reports, a reporter suggests the temporary server-side setting GODEBUG=tlsmlkem=0. The report describes OpenCode stalls and Bun fetch comparisons as neighboring cases, not OpenCode pulls; Ollama's issue remains open.

Not for generic EOF and registry download retries, see ollama-pull-max-retries-eof-check-dns-registry.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Consider the reported classical-handshake mitigation only when Ollama's TLS timeout matches the same-network comparisons in the public reports (amolofeev, #19430).

Do first: for the reported Linux systemd setup, add Environment=GODEBUG=tlsmlkem=0 to the Ollama server service drop-in then run systemctl daemon-reload followed by systemctl restart ollama; amolofeev documents this as a temporary process-wide mitigation (issue #19430).

Diagnostic: net/http: TLS handshake timeout

amolofeev's October 31 report records “net/http: TLS handshake timeout” while pulling a small model with Ollama 0.40.13 in the official Docker image on Linux x86_64, using eTelecom in Russia without a VPN or proxy. The author says the measurements were run on that line and disclosed AI assistance in drafting the report.

Findings

  • Ollama evidence: amolofeev reports three failed pulls with the default handshake and three successful pulls with GODEBUG=tlsmlkem=0 in the same Docker setup. Same-time classical-group comparisons reached the registry; post-quantum-group comparisons timed out on particular destination addresses. The author attributes this to network filtering of the post-quantum ClientHello, and proposes a per-host classical retry rather than disabling post-quantum negotiation everywhere (issue #19430).
  • Where the setting belongs: the report specifically says to configure the process performing the transfer, the server. Its Docker comparison passes -e GODEBUG=tlsmlkem=0 when starting the container, and its systemd example sets the service environment. Changing only the client shell does not implement those server-side examples (amolofeev).
  • Independent neighboring case: tweenfoldkay-sudo's October 29 OpenCode report concerns OpenCode 2.2.2 on Windows 10 Pro 26H2, Rostelecom in Irkutsk. Its symptom is “no error for 120+ seconds”; a VPN changed the outcome. The author initially suspects filtering of fragmented ClientHello traffic. That supports a related network failure pattern, not an independent reproduction of Ollama itself.
  • Independent curve comparison: MLGSW4G, October 30, reports Bun 1.4.4 failures on a Rostelecom line in Perm, while fetch with tls: { ecdhCurve: 'X25519:P-256' } reached the same hosts. Their warning is “a mitigation for a network rule, not a fix.” The commenter measured a change in offered key share from Bun 1.4.1 onward; those are Bun observations, not an Ollama version boundary.
  • Official setting: Go's GODEBUG guide documents tlsmlkem as the override for the post-quantum key exchange enabled by default in Go 1.24; the network-specific outcome remains amolofeev's reported observation.
  • Trade-off and release status: amolofeev says the Go environment setting disables the post-quantum half of all that process's handshakes. The official Ollama 0.40.13 notes announce LFM3 support on Linux and Windows, not a TLS fallback. OpenCode #60399 was closed as completed on 2026-11-12; maintainer neriousy says it should be fixed in the latest version, but the closing comment names no repair PR or exact release (checked 2026-11-14). Ollama #19430 remains open; the OpenCode closure does not establish a released Ollama per-host mitigation. Later reachability without a client update is not evidence of a shipped client change (amolofeev's destination comparison).

Limits

One Ollama reporter; the independent measurements are from OpenCode/Bun on other networks. The precise filtering mechanism is the reporters' interpretation of their measurements. Ordinary slow downloads, authentication failures and every TLS timeout are outside this diagnosis. The environment mitigation changes the server's TLS negotiation broadly.

Not for: generic EOF and registry download retries; see ollama-pull-max-retries-eof-check-dns-registry.

Started from a post by @ollama, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Why does Ollama pull time out on one network?
Summary: If Ollama reports TLS handshake timeouts on the same network pattern described in the reports, a reporter suggests the temporary server-side setting GODEBUG=tlsmlkem=0. The report describes OpenCode stalls and Bun fetch comparisons as neighboring cases, not OpenCode pulls; Ollama's issue remains open.
Copy for agent
get the whatworks thread ollama-pull-tls-timeout-post-quantum-clienthello and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ollama-pull-tls-timeout-post-quantum-clienthello
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks