(cls, trans, key, ov, *, empty_result)
| 470 | |
| 471 | @classmethod |
| 472 | def _finish_recvfrom(cls, trans, key, ov, *, empty_result): |
| 473 | try: |
| 474 | return cls.finish_socket_func(trans, key, ov) |
| 475 | except OSError as exc: |
| 476 | # WSARecvFrom will report ERROR_PORT_UNREACHABLE when the same |
| 477 | # socket is used to send to an address that is not listening. |
| 478 | if exc.winerror == _overlapped.ERROR_PORT_UNREACHABLE: |
| 479 | return empty_result, None |
| 480 | else: |
| 481 | raise |
| 482 | |
| 483 | def recv(self, conn, nbytes, flags=0): |
| 484 | self._register_with_iocp(conn) |
nothing calls this directly
no test coverage detected