(self)
| 610 | # Shutdown flow |
| 611 | |
| 612 | def _start_shutdown(self): |
| 613 | if ( |
| 614 | self._state in ( |
| 615 | SSLProtocolState.FLUSHING, |
| 616 | SSLProtocolState.SHUTDOWN, |
| 617 | SSLProtocolState.UNWRAPPED |
| 618 | ) |
| 619 | ): |
| 620 | return |
| 621 | if self._app_transport is not None: |
| 622 | self._app_transport._closed = True |
| 623 | if self._state == SSLProtocolState.DO_HANDSHAKE: |
| 624 | self._abort(None) |
| 625 | else: |
| 626 | self._set_state(SSLProtocolState.FLUSHING) |
| 627 | self._shutdown_timeout_handle = self._loop.call_later( |
| 628 | self._ssl_shutdown_timeout, |
| 629 | self._check_shutdown_timeout |
| 630 | ) |
| 631 | self._do_flush() |
| 632 | |
| 633 | def _check_shutdown_timeout(self): |
| 634 | if ( |
no test coverage detected