You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
End of the stream is not marked when the last chunk is of size equal to MAX_CHUNK (1024). Condition len(data) < MAX_CHUNK works fine in all cases when the last chunk is of size smaller than 1024 but not in case when last chunk is of size 1024. If we change this to len(data) <= MAX_CHUNK it wont work since we will mark END_STREAM for every chunk. Suggested solution is to make another argument that tell you when you have a last chunk.
The text was updated successfully, but these errors were encountered:
https://github.com/Lukasa/hyper/blob/13e2a909e14349d14ae2b86217062e1568242b9a/hyper/http20/stream.py#L330
End of the stream is not marked when the last chunk is of size equal to MAX_CHUNK (1024). Condition
len(data) < MAX_CHUNK
works fine in all cases when the last chunk is of size smaller than 1024 but not in case when last chunk is of size 1024. If we change this tolen(data) <= MAX_CHUNK
it wont work since we will mark END_STREAM for every chunk. Suggested solution is to make another argument that tell you when you have a last chunk.The text was updated successfully, but these errors were encountered: