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=0in 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=0when 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
fetchwithtls: { 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
tlsmlkemas 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