[issue44107] HTTPServer can't close http client completely

ueJone report at bugs.python.org
Tue May 11 06:07:39 EDT 2021


New submission from ueJone <775844993 at qq.com>:

# HTTP Server
from http.server import HTTPServer, SimpleHTTPRequestHandler  
 
port = 80  

httpd = HTTPServer(('', port), SimpleHTTPRequestHandler)
print("Starting simple_httpd on port: " + str(httpd.server_port))  
httpd.serve_forever()

#########################################
HTTP client(192.168.1.8) close the socket when http request is done.But the http server(192.168.1.168) does't send 'TCP_FIN' message.

----------
files: Dingtalk_20210511174335.jpg
messages: 393451
nosy: ueJone
priority: normal
severity: normal
status: open
title: HTTPServer can't close http client completely
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file50037/Dingtalk_20210511174335.jpg

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44107>
_______________________________________


More information about the Python-bugs-list mailing list