Title: gh-82500: Fix asyncio sendfile overflow on 32bit by bdraco · Pull Request #107056 · python/cpython · GitHub
Open Graph Title: gh-82500: Fix asyncio sendfile overflow on 32bit by bdraco · Pull Request #107056 · python/cpython
X Title: gh-82500: Fix asyncio sendfile overflow on 32bit by bdraco · Pull Request #107056 · python/cpython
Description: asyncio has the same issue This is the same patch we have been running for a while with Home Assistant https://raw.githubusercontent.com/home-assistant/docker-base/master/python/3.11/asynctio_unix_events.patch Issue: gh-82500 related issue and trace home-assistant/supervisor#4375 File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 458, in _handle_request reset = await self.finish_response(request, resp, start_time) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 611, in finish_response await prepare_meth(request) File "/usr/local/lib/python3.11/site-packages/aiohttp/web_fileresponse.py", line 286, in prepare return await self._sendfile(request, fobj, offset, count) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/web_fileresponse.py", line 99, in _sendfile await loop.sendfile(transport, fobj, offset, count) File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1185, in sendfile return await self._sendfile_native(transport, file, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 725, in _sendfile_native return await self.sock_sendfile(transp._sock, file, offset, count, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 881, in sock_sendfile return await self._sock_sendfile_native(sock, file, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/unix_events.py", line 373, in _sock_sendfile_native return await fut ^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/unix_events.py", line 395, in _sock_sendfile_native_impl sent = os.sendfile(fd, fileno, offset, blocksize) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ OverflowError: Python int too large to convert to C ssize_t
Open Graph Description: asyncio has the same issue This is the same patch we have been running for a while with Home Assistant https://raw.githubusercontent.com/home-assistant/docker-base/master/python/3.11/asynctio_unix_...
X Description: asyncio has the same issue This is the same patch we have been running for a while with Home Assistant https://raw.githubusercontent.com/home-assistant/docker-base/master/python/3.11/asynctio_unix_...
Opengraph URL: https://github.com/python/cpython/pull/107056
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9d587c9e-4b63-a887-e906-acbfd271e66a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ED0C:102A8A:160B23F:1EA0A01:6A500098 |
| html-safe-nonce | 54d8cb0f49bed1cb506435fb2c9b1407b7a1e1849a9cff8fbfe7e73e066fcc45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDBDOjEwMkE4QToxNjBCMjNGOjFFQTBBMDE6NkE1MDAwOTgiLCJ2aXNpdG9yX2lkIjoiNzA0NTQ5Mzk2MjUxOTM0ODcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 77edacfad8a7e45b0ac0c02e8cf4f72d304eac90c3e3f1d7ac082f599c69c5b6 |
| hovercard-subject-tag | pull_request:1445366639 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/107056/files |
| twitter:image | https://avatars.githubusercontent.com/u/663432?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/663432?s=400&v=4 |
| og:image:alt | asyncio has the same issue This is the same patch we have been running for a while with Home Assistant https://raw.githubusercontent.com/home-assistant/docker-base/master/python/3.11/asynctio_unix_... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56eec25a3430492dd6ec2a480eb33256a0da5192d5714b0db4f5ab5f33203d94 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e155b8a71f9284454f73118dfe5e634e74f7afb3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width