Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix _FakeServer to immediately close client connections
Without this, if the SMTP server throws an exception during initialization, Controller.stop() gets stuck indefinitely waiting on active connections. Note: this only happens in Python 3.12+. Earlier versions of Python allowed `wait_closed()` to complete regardless of active connections. With this change the TestFactory testcases can again be enabled for Python 3.12+. Fixes: aio-libs#394
- Loading branch information