Repository navigation
Replies: 8 comments 10 replies
|
็ป่ฎบๅ
่ก๏ผ่ฟไธๆฏๆจกๅ็้ฎ้ข๏ผไนไธๆฏไฝ ้
็ 1 ๅฐๆถ่ถ
ๆถๆฒก็ๆ็้ฎ้ขโโ่ฟๆฏ Node.js ๅบๅฑ fetch ๅฎขๆท็ซฏ๏ผundici๏ผ็ bodyTimeout๏ผ้ป่ฎคๅฐฑๆฏ 300 ็ง๏ผ5 ๅ้๏ผ๏ผๅฐ็นๅฐฑๆ่ฟๆฅๆไบใไฝ ้
็ฝฎ้็ ไธบไปไนๆฏ 5 ๅ้๏ผundici ็ ๅๆญฅๆๆฅ๏ผ
่ฏท่กฅๅ
๏ผdsh ็ๆฌ๏ผ |
|
่กฅๅ
ไธไธช็ธๅ
ณๆ
ๅต๏ผๅฆๆๆฏๆฌๅฐ llama.cpp (English: on |
|
Source-verified at 1. The pi-ai adapter forwards it verbatim into the SDK stream options:
So your 2. There's a SECOND, independent 5-minute killer the thread missed: the harness's own idle watchdog defaults to the same 300 000 ms.
Your stack shows undici's llm-pi-ai:
providers:
ollama:
...
timeoutMs: 3600000 # reaches the pi-ai SDK (adapter.ts:127)
streamIdleTimeoutMs: 3600000 # harness idle watchdog (default 300_000; max 2_147_483_647 ms)Note the watchdog also covers the |
|
ๆ่ฐขๅ้ฆใไฝ ็ๆ ๅตๅๆ็ไธๅ๏ผๅๅ ไน็กฎ่ฎคไบ๏ผOllama ๅจ็ๆๅทฅๅ ท่ฐ็จๅๆฐ๏ผwrite ็ๆดไธชๆไปถๅ ๅฎน๏ผๆ้ดไธๅๅฎขๆท็ซฏๅ้ไปปไฝๅญ่๏ผไนๆฒกๆ keepalive๏ผๆไปฅ Node ๅบๅฑ undici ็ bodyTimeout๏ผ300 ็ง๏ผdsh ๆฒกๆๅฏนๅบ้ ็ฝฎ๏ผไผๅ ๆ่ฟๆฅๆๆ๏ผstreamIdleTimeoutMs ่ฐๅคๅคง้ฝๆฒก็จใllama.cpp ไนๆไปฅๆฒกๆ่ฟไธช้ฎ้ข๏ผๆฏๅ ไธบๅฎๆฏ 30 ็งๅไธๆฌก SSE pingใ ็ฎๅ dsh ไพงๆฒกๆ้ ็ฝฎ่ฝๆน undici ็่ถ ๆถ๏ผๅช่ฝ้่ฟ #3157 ้็ node_modules ่กฅไธใๆๅฏไปฅๅไธไธชๅพๅฐ็ๆไปถ๏ผๅจ่ฟ็จๅฏๅจๆถๆ undici ็ headersTimeout/bodyTimeout ่ฐๅคง๏ผๅฝฑๅๆดไธช dsh ่ฟ็จ็ fetch๏ผไฝๅฏนๆฌๅฐๅ็จๆท้จ็ฝฒๅบๆฌๆ ๅฎณ๏ผใๅฆๆไฝ ๆฟๆ่ฏ๏ผๆๅๅธๅๅจ่ฟ้่ดด้พๆฅใ (English: Ollama sends nothing back, not even a keepalive, while it generates tool-call arguments, so Node's 300 s body timeout kills the connection before anything dsh controls. There's no dsh setting for that timeout; llama.cpp avoids the whole issue by sending a ping every 30 s. If it helps, I can put together a small plugin that raises those timeouts for the whole dsh process.) |
ๆ้ๅฐ่ฟๅๆ ท็่ถ ๆถ๏ผๅจ bodyTimeout ๅบๆฏ๏ผๆฅ่ช dsh-local-ai ็ๆ้๏ผ็นๅซๆฏ้ฟ่พๅบ๏ผๅฆ write ๅบๆฏ๏ผใOllama ๆๅก็ซฏ้ป่ฎค keepalive๏ผundici 300 ็งๅๆญ่ฟ๏ผ่ถ ๆถ้่ฏฏๅฐฑๆฏ่ฟไนๆฅ็๏ผ
ๅฆๆ้ฎ้ขไพๆง๏ผๆฌข่ฟ่ดดๅบ Ollama ๆฅๅฟไธ่ฏทๆฑๅๆฐ๏ผๆๅๅธฎไฝ ็ใ |
|
ๆไปถๅๅธไบ๏ผhttps://github.com/d3vmeh/dsh-fetch-timeouts ๅฎ่ฃ ๏ผ ้ป่ฎคๆ headersTimeout ๅ bodyTimeout ้ฝ่ฐๅฐ 30 ๅ้๏ผๅฏไปฅๅจ profile ็ cordis.patch.yml ้ๆนใ่ฎฐๅพๅๆถๆ ollama ่ทฏ็ฑไธ็ (English: published. Install with the line above; defaults to 30 minutes for both timeouts, configurable in your profile patch. Also raise |
|
@PerryLink ไฝ ็่ฏ่ฎบๆพ็คบไธบไนฑ็ ๏ผไธญๆ้ฝๅๆไบ้ฎๅท๏ผ๏ผ่ฝ้ๆฐๅไธไธๅ๏ผไป่ฝ็ๅฐ็้จๅ็ๆตไฝ ๆๅฐไบ keep_aliveใOLLAMA_NUM_PARALLEL ๅๅจ dsh-local-ai ้ๅค็้ฟๆถ้ด้้ป๏ผๅพๆณ็ๅฎๆดๅ ๅฎนใๅฆๅค undici ่ถ ๆถ็ๆไปถๅทฒ็ปๅไบ๏ผhttps://github.com/d3vmeh/dsh-fetch-timeouts |


ๆไปถๅๅธไบ๏ผhttps://github.com/d3vmeh/dsh-fetch-timeouts
ๅฎ่ฃ ๏ผ
้ป่ฎคๆ headersTimeout ๅ bodyTimeout ้ฝ่ฐๅฐ 30 ๅ้๏ผๅฏไปฅๅจ profile ็ cordis.patch.yml ้ๆนใ่ฎฐๅพๅๆถๆ ollama ่ทฏ็ฑไธ็
streamIdleTimeoutMsๅtimeoutMsไน่ฐๅคง๏ผๅฆๅ dsh ่ชๅทฑ็็้จ็ไผๅ ่งฆๅใๅฎๆฏๅ จ่ฟ็จ็ๆ็๏ผdsh ้ๆๆ fetch ้ฝไผ็จๆด้ฟ็่ถ ๆถ๏ผ๏ผๅจๆฌๅฐๅไบบไฝฟ็จ็ๆบๅจไธๆฒก้ฎ้ข๏ผๅฆๆ่ฎพ็ฝฎไบ NODE_USE_ENV_PROXY๏ผไปฃ็ไป็ถๆๆใWindows ไธๆๆฒกๆๆต่ฟ๏ผ่ฏไบไนๅๆฌข่ฟๅ้ฆใ(English: published. Install with the line above; defaults to 30 minutes for both timeouts, configurable in your profile patch. Also raise
streamIdleTimeoutMsandtimeoutMson the ollama route or dsh's own watchdog fires first. Process-wide, proxy env vars still honoured. Not tested on Windows yet, feedback welcome.)