neolith run: say when a connection closes, and bound what it reads after a refusal
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- backend, networking
Direzione di ricerca
Start with src/neolith/_server.py and its tests after issue #129 has merged. Read how Django's WSGIRequestHandler.handle_one_request selects ServerHandler, then trace the server's response handling for draining, refused requests with unread bodies, and bodyless statuses. Done means the tests cover all three expected connection behaviors, including the documented case where draining starts after headers are sent.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Found by running the HTTP connector (#128) against the provider endpoints (#129) on one tree. Three points about connections under neolith run:
- Drain. A response that finishes while the host is draining carries no
Connection: close, so the caller's pool keeps a connection the server is about to close, and the next call on it fails asunavailable. Expected: while draining, each response saysConnection: closeand the connection closes after it. One case stays and is documented: Drain that begins after the headers are sent. - An unread request body. After an early refusal, such as a call with no credential, the server reads the rest of the request body into memory in one read. Expected: it is discarded in fixed-size pieces up to a bound, and past the bound the connection is closed.
- An empty reply. Every 204 closes the connection, because a response with no
Content-Lengthis treated as unframed, so each empty reply costs the caller a new connection. Expected: a status that admits no body (1xx, 204, 304) keeps the connection.
All three need the server to build its own response handler, since Django's WSGIRequestHandler.handle_one_request names ServerHandler directly. runserver and the test live server keep Django's behaviour, and the documentation says so.
Scope: src/neolith/_server.py and its tests, once #129 has merged. The sentences of ADR 0011 that describe these are handled in #133.
- Lingua principale
- Python
- Stelle
- 1
- Fork
- 0
- Merge medio
- 5h 30m
- PR unite (30g)
- 85
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stack314/django-neolith
-
help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
stack314/django-neolith#142 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
stack314/django-neolith#141 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
stack314/django-neolith#140 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
stack314/django-neolith#126 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
stack314/django-neolith#119 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di stack314/django-neolith
Issue simili
-
automated endpoint-dead needs-curation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
almanac-data/climate-almanac#138 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
OceanDataTools/openrvdas#760 ·
I maintainer di solito rispondono entro 1 giorno
-
level/subtask type/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
wazuh/wazuh-virtual-machines#1091 ·
I maintainer di solito rispondono entro 1 giorno
-
Python: Bug: ChatMessageContent.from_element drops AudioContent and BinaryContent into raw TextContentForse già presa @halcyon-past l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/semantic-kernel#14824 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
LedgerHQ/app-bitcoin-legacy#306 ·