(self, sock, file, offset, count)
| 956 | offset, count) |
| 957 | |
| 958 | async def _sock_sendfile_native(self, sock, file, offset, count): |
| 959 | # NB: sendfile syscall is not supported for SSL sockets and |
| 960 | # non-mmap files even if sendfile is supported by OS |
| 961 | raise exceptions.SendfileNotAvailableError( |
| 962 | f"syscall sendfile is not available for socket {sock!r} " |
| 963 | f"and file {file!r} combination") |
| 964 | |
| 965 | async def _sock_sendfile_fallback(self, sock, file, offset, count): |
| 966 | if offset: |
no outgoing calls