Repository navigation
fix(proxy): HTTP/2 verso l'upstream disattivabile (OPENVIDIA_HTTP2=0) - #10
Merged
Merged
Conversation
Con HTTP/2 un solo GOAWAY di NVIDIA (ConnectionTerminated) chiude insieme tutti gli stream in corso: su soliso, con 5 sessioni opencode in parallelo, ogni chiusura faceva fallire tutte le sessioni con "Invalid openvidia/openai-compatible-chat stream event". Con OPENVIDIA_HTTP2=0 ogni richiesta ha la sua connessione HTTP/1.1 e una chiusura costa uno stream solo. Il default resta HTTP/2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema (visto su soliso il 10-10): con
http2=Truele richieste verso NVIDIA condividono una connessione. Un GOAWAY (ConnectionTerminated error_code:0nel journal, su 7+ chiavi nello stesso secondo) chiude tutti gli stream in corso; opencode riceve un evento non valido e la sessione muore (Invalid openvidia/openai-compatible-chat stream event).Modifica:
config.upstream_http2()leggeOPENVIDIA_HTTP2(default acceso,0/false/no/offlo spegne);create_applo usa.Verifica:
pytest tests/test_upstream_http2.py tests/test_proxy.py: 64 passed. In produzione su soliso il servizio gira conOPENVIDIA_HTTP2=0.Non fatto: il modello dei riassunti di compaction (
meta/llama-3.1-8b-instruct) risponde HTTP 410 su NIM; il fallback a taglio funziona ma perde contesto. Va scelto un modello non-reasoning disponibile.🤖 Generated with Claude Code