(self, fut, sock)
| 714 | return await fut |
| 715 | |
| 716 | def _sock_accept(self, fut, sock): |
| 717 | fd = sock.fileno() |
| 718 | try: |
| 719 | conn, address = sock.accept() |
| 720 | conn.setblocking(False) |
| 721 | except (BlockingIOError, InterruptedError): |
| 722 | self._ensure_fd_no_transport(fd) |
| 723 | handle = self._add_reader(fd, self._sock_accept, fut, sock) |
| 724 | fut.add_done_callback( |
| 725 | functools.partial(self._sock_read_done, fd, handle=handle)) |
| 726 | except (SystemExit, KeyboardInterrupt): |
| 727 | raise |
| 728 | except BaseException as exc: |
| 729 | fut.set_exception(exc) |
| 730 | else: |
| 731 | fut.set_result((conn, address)) |
| 732 | |
| 733 | async def _sendfile_native(self, transp, file, offset, count): |
| 734 | del self._transports[transp._sock_fd] |
no test coverage detected