diff --git a/aiosmtpd/controller.py b/aiosmtpd/controller.py index fbb16be8..ef6ed296 100644 --- a/aiosmtpd/controller.py +++ b/aiosmtpd/controller.py @@ -108,6 +108,9 @@ def _cb_client_connected( ) -> None: pass + def connection_made(self, transport): + transport.close() + @public class BaseController(metaclass=ABCMeta): diff --git a/aiosmtpd/tests/test_server.py b/aiosmtpd/tests/test_server.py index 443c0833..45ffe02c 100644 --- a/aiosmtpd/tests/test_server.py +++ b/aiosmtpd/tests/test_server.py @@ -535,7 +535,6 @@ def test_inet_contstop(self, temp_event_loop, runner): assert temp_event_loop.is_closed() is False -@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Hangs on 3.12") @pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning") class TestFactory: def test_normal_situation(self):