MCPcopy Index your code
hub / github.com/RustPython/RustPython / _sock_sendfile_native

Method _sock_sendfile_native

Lib/asyncio/base_events.py:958–963  ·  view source on GitHub ↗
(self, sock, file, offset, count)

Source from the content-addressed store, hash-verified

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:

Calls

no outgoing calls