[issue44107] HTTPServer can't close http client completely

2021-06-16 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
resolution: later -> not a bug
status: open -> closed

___
Python tracker 

___
___
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

2021-06-16 Thread ueJone


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 

___
___
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

2021-05-17 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

Python is calling close() after the HTTP/1.0 request.  This isn't a bug on the 
CPython side.

--
nosy: +gregory.p.smith
resolution: remind -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
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

2021-05-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

3.8 only gets security fixes.  Please verify issue on a current release.

--
nosy: +terry.reedy

___
Python tracker 

___
___
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

2021-05-11 Thread ueJone


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 

___
___
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

2021-05-11 Thread Jonathan Schweder


Jonathan Schweder  added the comment:

@ueJone according to the 
(RFC)[https://datatracker.ietf.org/doc/html/rfc6455#section-1.4] the FIN/ACK is 
not normative, in other words is recommended but not required, I've checked the 
syscalls of the server, see it below:

```
...
1561 15143 write(2, "127.0.0.1 - - [11/May/2021 20:08"..., 60) = 60$
1562 15143 sendto(4, "HTTP/1.0 200 OK\r\nServer: SimpleH"..., 154, 0, NULL, 0) 
= 154$
1563 15143 sendto(4, "

___
___
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

2021-05-11 Thread ueJone


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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com