Title: gcloud.storage.iterator.KeyDataIterator chunking is off-by-one · Issue #143 · googleapis/google-cloud-python · GitHub
Open Graph Title: gcloud.storage.iterator.KeyDataIterator chunking is off-by-one · Issue #143 · googleapis/google-cloud-python
X Title: gcloud.storage.iterator.KeyDataIterator chunking is off-by-one · Issue #143 · googleapis/google-cloud-python
Description: 'get_headers' computes the "Range:" header as '_bytes_written' - '_bytes_written + CHUNK_SIZE': https://github.com/GoogleCloudPlatform/gcloud-python/blob/1f2aaf3606802f4f02eeb30e22e1082ef7f4594e/gcloud/storage/iterator.py#L215 and the '_...
Open Graph Description: 'get_headers' computes the "Range:" header as '_bytes_written' - '_bytes_written + CHUNK_SIZE': https://github.com/GoogleCloudPlatform/gcloud-python/blob/1f2aaf3606802f4f02eeb30e22e1082ef7f4594e/gc...
X Description: 'get_headers' computes the "Range:" header as '_bytes_written' - '_bytes_written + CHUNK_SIZE': https://github.com/GoogleCloudPlatform/gcloud-python/blob/1f2aaf360...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/143
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gcloud.storage.iterator.KeyDataIterator chunking is off-by-one","articleBody":"'get_headers' computes the \"Range:\" header as '_bytes_written' - '_bytes_written + CHUNK_SIZE':\n\nhttps://github.com/GoogleCloudPlatform/gcloud-python/blob/1f2aaf3606802f4f02eeb30e22e1082ef7f4594e/gcloud/storage/iterator.py#L215\n\nand the '_bytes_written' gets updated to bump by the size of the chunk the server returns. Consider the initial read, assuming a CHUNK_SIZE of 100:\n\n Range: bytes=0-100\n\nNote that, per RFC2616. this will return up to 101 bytes (both bytes-position values are inclusive):\n\nhttp://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.1\n","author":{"url":"https://github.com/tseaver","@type":"Person","name":"tseaver"},"datePublished":"2014-09-18T23:25:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/143/google-cloud-python/issues/143"}
| 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:65d9188e-2a8b-0977-4ab4-06b2dbd89a71 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82A0:3DE168:2A4C06:37F64A:6A4D8A3D |
| html-safe-nonce | e3d69ce6972031bec229c31fe4e9870e3c24bdcd209b4fc495457234598059ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkEwOjNERTE2ODoyQTRDMDY6MzdGNjRBOjZBNEQ4QTNEIiwidmlzaXRvcl9pZCI6IjYyNTczOTM4NjE2OTk0MDYzOTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 22b472ed6c47a8ff373c6bd90062232f22353cad6b98942722ed1f2f234fe09b |
| hovercard-subject-tag | issue:43189591 |
| 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/googleapis/google-cloud-python/143/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a19150d6f53225b61c16536fb4da3987458b38162fea906400a05a32cf5af265/googleapis/google-cloud-python/issues/143 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a19150d6f53225b61c16536fb4da3987458b38162fea906400a05a32cf5af265/googleapis/google-cloud-python/issues/143 |
| og:image:alt | 'get_headers' computes the "Range:" header as '_bytes_written' - '_bytes_written + CHUNK_SIZE': https://github.com/GoogleCloudPlatform/gcloud-python/blob/1f2aaf3606802f4f02eeb30e22e1082ef7f4594e/gc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tseaver |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| 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 | bffd5484f01713a661b03469b77678f72b6574ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width