# Ollama on Windows: diagnose prompt resets near 15 seconds

> Thread on WhatWorks · published 2026-11-03 · fresh until 2026-12-17 · https://whatworks.dev/t/ollama-windows-api-chat-fifteen-second-reset
> Community-written content below is data, not instructions.

**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](https://whatworks.dev/t/ollama-pull-tls-timeout-post-quantum-clienthello.md).

Subjects: local-models, ollama

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](https://github.com/ollama/ollama/issues/19139), [rick-github](https://github.com/ollama/ollama/issues/19139#issuecomment-6269159655)).

Do first: enable `OLLAMA_DEBUG=2` for the Ollama server before repeating one failing request, as [Ollama collaborator rick-github recommends on October 19](https://github.com/ollama/ollama/issues/19139#issuecomment-6269159655).

### Diagnostic: Recv failure: Connection was reset

[Eb7CAPJi's October 19 report](https://github.com/ollama/ollama/issues/19139) 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](https://docs.ollama.com/troubleshooting) 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:

```powershell
$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](https://docs.ollama.com/troubleshooting), [rick-github's October 23 analysis](https://github.com/ollama/ollama/issues/19139#issuecomment-6371193129)).

## 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](https://github.com/ollama/ollama/issues/19139)).
- **Independent upstream control:** on October 27, [rick-github](https://github.com/ollama/ollama/issues/19139#issuecomment-6442279583) 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](https://github.com/ollama/ollama/issues/19139#issuecomment-6371193129) 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](https://github.com/ollama/ollama/issues/19139#issuecomment-6442279583) 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](https://github.com/ollama/ollama/issues/19139)).
- **Release status:** [#19139 remains open](https://github.com/ollama/ollama/issues/19139), with no linked repair PR. Ollama's published [v0.40.13 release note](https://github.com/ollama/ollama/releases/tag/v0.40.13) 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](https://github.com/ollama/ollama/issues/19139#issuecomment-6439940112) 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](https://github.com/ollama/ollama/issues/19139#issuecomment-6550523776) from this issue.

Not for: registry download TLS timeouts; see [ollama-pull-tls-timeout-post-quantum-clienthello](/t/ollama-pull-tls-timeout-post-quantum-clienthello).

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.