reproducer for pull request number 19556 on cpython
Go to file
RouxAntoine 118301f024
feature: reproduce so threading http server hanging
2024-03-10 19:42:59 +01:00
.editorconfig feature: reproduce so threading http server hanging 2024-03-10 19:42:59 +01:00
.gitignore feature: reproduce so threading http server hanging 2024-03-10 19:42:59 +01:00
LICENSE feature: reproduce so threading http server hanging 2024-03-10 19:42:59 +01:00
Main.py feature: reproduce so threading http server hanging 2024-03-10 19:42:59 +01:00
README.md feature: reproduce so threading http server hanging 2024-03-10 19:42:59 +01:00

README.md

Reproducer to github issue on cpython repository

This code create a Thread and run a minimal http server into it.

19556

how to reproduce

The tricky part is in Main.py line 28 class BackendThreadHttpServer method server_close()

when running this code and exiting it with ctrl+c

If BackendThreadHttpServer#server_close() method doesn't call BaseServer.shutdown(self) the thread join never occurred

and so the program never end