[issue10724] socket.close close telnet with RST

2010-12-21 Thread sean216
Changes by sean216 : Removed file: http://bugs.python.org/file20090/telnet_unnormal RST.pcap ___ Python tracker ___ ___ Python-bugs-list maili

[issue10724] socket.close close telnet with RST

2010-12-21 Thread sean216
Changes by sean216 : Removed file: http://bugs.python.org/file20091/normal RST and fin.pcap ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10724] socket.close close telnet with RST

2010-12-21 Thread R. David Murray
R. David Murray added the comment: Regardless, Python doesn't generate the tcp/ip sequence numbers, the OS socket library does, so this is not a bug in Python. If you follow the code link I posted you will see that, other than Python internal bookkeeping, the only thing socket.close does is

[issue10724] socket.close close telnet with RST

2010-12-21 Thread sean216
sean216 added the comment: > Note that in your sample capture, I don't see any invalid sequence/ack number. please check telnet_unnormal RST.pcap in No. 1600-1602,the 1602 RST meseage is the invalid sequence/ack number 172. -- status: closed -> open __

[issue10724] socket.close close telnet with RST

2010-12-17 Thread R. David Murray
R. David Murray added the comment: The source used to create _socket.pyd is in Modules/socketmodule.c in the source code tarball available from the python web site. As neologix says, it is a thin wrapper around the OS level socket library. -- nosy: +r.david.murray resolution: -> inv

[issue10724] socket.close close telnet with RST

2010-12-17 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > but sometimes socket.close will send TCP RST to disconnect the telnet and > with wrong sequence number This is called a a "half-duplex" TCP close sequence. Your application is probably closing the socket while there are still data in the receive so

[issue10724] socket.close close telnet with RST

2010-12-16 Thread sean216
sean216 added the comment: def close(self): self._sock = _closedsocket() dummy = self._sock._dummy for method in _delegate_methods: setattr(self, method, dummy) close.__doc__ = _realsocket.close.__doc__ socket.close function use Python25\DLLs\_socket.pyd,

[issue10724] socket.close close telnet with RST

2010-12-16 Thread sean216
Changes by sean216 : Added file: http://bugs.python.org/file20091/normal RST and fin.pcap ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10724] socket.close close telnet with RST

2010-12-16 Thread sean216
New submission from sean216 : when use socket.close to close the telnet connection, in normal usage the tcp disconnect will be (socket.close send the TCP FIN) TCP ATCP B 1. ESTABLISHED ESTABLISHED