-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StreamReader.readchunk returns false-negative indicator end_of_HTTP_chunk #3361
Comments
GitMate.io thinks the contributor most likely able to help you is @asvetlov. Possibly related issues are #2112 (StreamReader.iter_chunks() raises IndexError), #313 (Can StreamReader replace FlowControlStreamReader ???), and #959 (StreamReader.read(n) to read n bytes or until eof). |
Working on solution with @socketpair |
@mnach please show expected results and actual |
thx, updated |
@mnach Please make pull request, I know, you have a patch. |
@socketpair How did you know? ) |
Fixed by #3362 |
Long story short
readchunk function returns False after full chunk received.
It causes unexpected delays and complicated chunk parser in chunk-dependent protocols (In our case: "Watch keys" in etcd HTTP API)
Expected behaviour
end_of_HTTP_chunk
indicator equalsTrue
when full chunk received.Actual behaviour
indicator equals
False
when tail of chunk ('\r\n') comes separately or with next chunkSteps to reproduce
Simple web-server to reproduce the issue:
Client side:
Expected result:
Actual:
Environment
client side issue
aiohttp: 3.2.0, 3.4.4, master
OS: linux
The text was updated successfully, but these errors were encountered: