Title: END_STREAM not marked when last chunk of length MAX_CHUNK · Issue #355 · python-hyper/hyper · GitHub
Open Graph Title: END_STREAM not marked when last chunk of length MAX_CHUNK · Issue #355 · python-hyper/hyper
X Title: END_STREAM not marked when last chunk of length MAX_CHUNK · Issue #355 · python-hyper/hyper
Description: 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 fin...
Open Graph Description: 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). C...
X Description: 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). C...
Opengraph URL: https://github.com/python-hyper/hyper/issues/355
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"END_STREAM not marked when last chunk of length MAX_CHUNK","articleBody":"https://github.com/Lukasa/hyper/blob/13e2a909e14349d14ae2b86217062e1568242b9a/hyper/http20/stream.py#L330\r\n\r\nEnd of the stream is not marked when the last chunk is of size equal to MAX_CHUNK (1024). Condition `len(data) \u003c 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) \u003c= 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. ","author":{"url":"https://github.com/PrimozGodec","@type":"Person","name":"PrimozGodec"},"datePublished":"2017-10-26T11:58:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/355/hyper/issues/355"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:23654735-b346-4f35-3c36-b92f9255adb8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B010:25C52D:3D7561:4F7E71:696B0882 |
| html-safe-nonce | 9097be972690eef258ee00df28a854327a1b333a97950db1bda46c5cad7bcbdc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDEwOjI1QzUyRDozRDc1NjE6NEY3RTcxOjY5NkIwODgyIiwidmlzaXRvcl9pZCI6IjYwMTQzNTIxMzM1MzQxODk2OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 789c056a334cd881b3050b9fdb2e73a2f2a6527f4671752889e78129b9ea25a4 |
| hovercard-subject-tag | issue:268732352 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-hyper/hyper/355/issue_layout |
| twitter:image | https://opengraph.githubassets.com/74277856182342c6a201ca1bc8544e6f1b3545743627d9fa333a828586bb273f/python-hyper/hyper/issues/355 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/74277856182342c6a201ca1bc8544e6f1b3545743627d9fa333a828586bb273f/python-hyper/hyper/issues/355 |
| og:image:alt | 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). C... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PrimozGodec |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/hyper git https://github.com/python-hyper/hyper.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 16165969 |
| octolytics-dimension-repository_nwo | python-hyper/hyper |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16165969 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/hyper |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width