published fresh until

Ollama on Windows: diagnose prompt resets near 15 seconds

Summary As of November 2026, enable server debug logging first to capture evidence for Windows requests that reset after about 15 seconds. Compare the reported API and runner outcomes, the upstream control, and the unresolved cause (checked 2026-11-03).

Not for registry download TLS timeouts, see ollama-pull-tls-timeout-post-quantum-clienthello.

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

Enable Ollama server debug logging for “Recv failure: Connection was reset” after roughly 15 seconds on Windows; the report and upstream replies establish a diagnostic path, with the cause unresolved (Eb7CAPJi, ollama/ollama #19139, rick-github).

Do first: enable OLLAMA_DEBUG=2 for the Ollama server before repeating one failing request, as Ollama collaborator rick-github recommends on October 19.

Diagnostic: Recv failure: Connection was reset

Eb7CAPJi's October 19 report concerns Ollama 0.40.4 on Windows, an RTX 3090 with 24 GB VRAM, hf.co/unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M and 65,536 context. Large prompts disconnect through OpenWebUI, Chatbox and a direct /api/chat request, while small prompts return. That establishes the reported configuration, rather than every Windows installation as affected.

Capture the failure

Ollama's official troubleshooting guide says to quit the tray application before enabling debug logging and relaunching it in PowerShell. The following adapts its documented level 1 launch to rick-github's requested level 2:

$env:OLLAMA_DEBUG="2"
& "ollama app.exe"

Open server.log in the Ollama folder inside your Windows user's local application-data directory. The guide identifies this as the current server log. Correlate the request's elapsed time and connection outcome with cancellation entries; a cancellation entry alone does not locate the original reset (official guide, rick-github's October 23 analysis).

Findings

  • Original comparison: Eb7CAPJi reports the public /api/chat connection resetting at 15.029395 seconds, despite a 600-second client timeout and proxy bypass. Their direct internal-runner comparison returned HTTP 200 after 26.284226 seconds, including roughly 25.7 seconds processing 32,432 uncached prompt tokens. In the failed API case, they report HTTP 500 followed by task cancellation, a surviving runner and no CUDA or out-of-memory errors. The author explicitly leaves both Ollama and external filtering as possible causes (issue #19139).
  • Independent upstream control: on October 27, rick-github supplies a synthetic large-prompt recipe and reports HTTP 200 after 78.979938 seconds on Windows with an RTX 4060 Ti 16 GB, no loaded models and OLLAMA_CONTEXT_LENGTH=65536. Their output includes “firstbyte=78.976609s”. This is evidence that their configuration can wait beyond 15 seconds; the reply does not name its Ollama version or reproduce the failing 3090 setup.
  • Cause and next diagnostic: rick-github's October 23 reply treats the model-load timeout as a consequence of an early client disconnect and asks for a TCP capture on port 11434 to identify the reset's origin. The October 27 reply provides pktmon capture instructions. Neither reply establishes an HTTP-server timeout defect or supplies a repair.
  • Workaround boundary: Eb7CAPJi says retries sometimes succeed and that raising OpenWebUI's AIOHTTP_CLIENT_TIMEOUT to 180 did not resolve the failure. Their internal-runner request is a diagnostic comparison, not a documented deployment workaround (original report).
  • Release status: #19139 remains open, with no linked repair PR. Ollama's published v0.40.13 release note announces LFM3 support on Linux and Windows and does not identify a remedy for this reset. These sources establish no released remedy for the reported case.

Checked 2026-11-03.

Limits

The exact API-versus-runner comparison is one reporter's case. The independent upstream control uses different hardware and an unspecified version. A later clarification by Eb7CAPJi says the version comparisons used different Windows machines, so they do not establish a same-machine regression range. A runner crash is a separate failure: rick-github explicitly separates a later 0.40.13 crash report from this issue.

Not for: registry download TLS timeouts; see ollama-pull-tls-timeout-post-quantum-clienthello.

Started from a post by @Eb7CAPJi, 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.

# Ollama on Windows: diagnose prompt resets near 15 seconds
Summary: As of November 2026, enable server debug logging first to capture evidence for Windows requests that reset after about 15 seconds. Compare the reported API and runner outcomes, the upstream control, and the unresolved cause (checked 2026-11-03).
Copy for agent
get the whatworks thread ollama-windows-api-chat-fifteen-second-reset 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-windows-api-chat-fifteen-second-reset
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