socket issue with recv()

2014-08-23 Thread Arthur Clarck
Hello, I am starting socket scripting with python. I do understand from the doc that a socket is bmocking by default. I wrote 2 basics script to verify this behaviour. my "tcp_server.py": import socket, sys s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) HOST = '192.168.0.103' PORT = 106

Re: socket issue with recv()

2014-08-23 Thread Arthur Clarck
The data flow is not corrupted with extra characters. But I do not detect the closing of the socket on the remote server. Why is recv not blocking !!! Le samedi 23 août 2014 10:23:14 UTC+2, Arthur Clarck a écrit : > Hello, > > > > I am starting socket scripting with python. >