Jonathan Schweder <jonathanschwe...@gmail.com> 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, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 728, 0, NULL, 0) = 
728$
1564 15143 shutdown(4, SHUT_WR)              = 0$
1565 15143 close(4)                          = 0$
...
```

As you can see, Python is not the one sending or not sending the ACK/FIN codes, 
this is coming from the underlining OS implementation of the `close()`.

My questions is, which OS are you using/testing this example?

----------
nosy: +jaswdr

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

Reply via email to