[issue44107] HTTPServer can't close http client completely
ueJone <775844...@qq.com> added the comment: Sorry, I've been busy with other things recently. I think that the problem is't caused by OS, because the other TCP servers were disconnected normally and TCP client can access to these servers. My question is how to make the client connect to the server normally every time, instead of why the abnormal disconnect. The attachment: Capture packets of wireshark(HTTPServer listen on port 20245) -- resolution: not a bug -> later status: closed -> open Added file: https://bugs.python.org/file50111/tcpPort_20245.pcapng ___ Python tracker <https://bugs.python.org/issue44107> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44107] HTTPServer can't close http client completely
ueJone <775844...@qq.com> added the comment: The HTTPServers run on win10 20H2. The HTTP client is a embed device. The client often fails to connect to the HTTP server when reboot after close socket. Test as follows: 1. The client close socket when HTTP_GET request is done.(Now you can see that HTTPServer not send 'FIN', it means the server not close socket completely) 2. The client reboot and send HTTP_GET request again, but it can't connect to the HTTPServer as shown in the attachment. In addition, every request is successful if the client not reboot. I think the problem may be caused by the HTTPServer not closing the previous connection completely. -- resolution: -> remind ___ Python tracker <https://bugs.python.org/issue44107> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44107] HTTPServer can't close http client completely
New submission from ueJone <775844...@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 <https://bugs.python.org/issue44107> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com