16 lines
495 B
Markdown
16 lines
495 B
Markdown
# Reproducer to github issue on cpython repository
|
|
|
|
This code create a Thread and run a minimal http server into it.
|
|
|
|
[19556](https://github.com/python/cpython/pull/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
|