-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Implement loop.sock_sendfile method #76591
Comments
The method should be low-level coroutine, implemented on loops with native sendfile support only (UnixEventLoop). The signature should be close to socket.sendfile() method Next step is implementing loop.sendfile(transport, ...) with fallback to sending by chunks if sendfile is not supported. |
Andrew, test_cancel2 test fails 1 out of 10 times on my machine (log below). Could you please take a look? Also, can you rename sendfile tests to 'test_sock_sendfile_*'? {pydev} ~/d/p/cpython (master %) » ./python.exe -m test test_asyncio -v -m test_cancel2 ====================================================================== Traceback (most recent call last):
File "/Users/yury/dev/pydev/cpython/Lib/test/test_asyncio/test_unix_events.py", line 487, in cleanup
proto.transport.close()
AttributeError: 'NoneType' object has no attribute 'close' Ran 1 test in 0.010s FAILED (errors=1) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: