New submission from ROUX antoine <antoinerou...@gmail.com>:

Maybe : 

Main problem is currently ThreadingHTTPServer which extends 
socketserver.ThreadingMixIn and HTTPServer don't overload his server_close() 
method. This method server_close is defined into both parent class and should 
be both call in implementation to avoid shadow definition.

Second and linked to first problem is the class socketserver.TCPServer which is 
parent class of HTTPServer and extend of BaseServer don't overload method 
server_close() properly indeed this overload call self.socket.close() but 
should also call super().shutdown() to avoid infinite thread join into 
ThreadingHTTPServer server_close() method.

Open to advice

----------
components: Library (Lib)
files: testHttpServer.py
messages: 366619
nosy: ROUX antoine2
priority: normal
severity: normal
status: open
title: Fix server_close() method for ThreadingHTTPServer and TCPServer class
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file49068/testHttpServer.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40305>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to