MCPcopy Index your code
hub / github.com/python/cpython / _sock_sendfile_native

Method _sock_sendfile_native

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

Source from the content-addressed store, hash-verified

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:

Calls

no outgoing calls