Repository navigation
Conversation
Preserve wire bytes in HTTP scopes and request bodies. Distinguish body EOF from request termination so post-EOF receives suspend until the response finishes, the peer disconnects, or the request times out. Bound full-channel retries without dropping terminal response messages. Use erlang_python 5.0.1 for reliable disconnect notifications across the default pool loops, and cover wire bytes and lifecycle paths with Python, native HTTP, and isolated-double regressions.
This was referenced Nov 17, 2026
This branch has not been deployed
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.
Fix ASGI byte fields and request-body stalls
Summary
Preserve ASGI wire bytes and prevent request-body EOF/backpressure stalls.
Erlang/Python text autodetection currently turns valid UTF-8 headers, query
strings, and small bodies into
str; repeated post-EOFreceive()calls canalso starve the application.
raw_path,query_string, and inlinebodies to bytes. Decode only Unicode
path/root_path, preserving mountsemantics and duplicate headers.
completion signals the receiver directly; a separate close-only channel
signals peer disconnect and timeout without conflating them with body EOF.
Keep lifecycle doubles isolated from native test discovery. No lifespan,
WebSocket, or services redesign is included.
Dependency
Upgrade
erlang_pythonfrom 5.0.0 to released 5.0.1 for itspool-loop routing fix.
Disconnect notifications use async byte-channel reads, which can lose wakeups
across multiple pool loops in 5.0.0. Native regressions pass without a
pool-size override, using the default eight loops.
Verification
OTP 28 / Python 3.14.10, with released
erlang_python5.0.1:All commands pass. Common Test: 226 passed, 10 explicitly skipped. EUnit:
2 passed. Isolated lifecycle doubles: 13 passed. Xref: passed. The 21 Python
tests also pass on Python 3.12.16.
Eight native HTTP regressions cover wire bytes, cookies, inline/streamed
bodies, response completion, peer close before/after response start, and
request timeout. The busy-channel deadline is covered with isolated doubles;
production retains its existing unbounded body-channel capacity. This change
does not introduce a body-queue memory limit.
The full CI version matrix and dialyzer were not rerun. Native tests use
Python 3.14; 5.0.1 retains the dependency's eager
NativeSupervisorforwardannotation, which needs a separate fix for Python 3.12/3.13 imports. Passing
focused worker tests on 3.12 is not a native-bridge compatibility claim.