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