I'm not getting the last packet received by the client.
See the below Python scripts. Ideally, client should go from 0 to 499 connecting and disconnecting from the server. However, with ignore traffic checked, It consistently hangs near the beginning.
I'm running Windows 8 X64 and NetWorx 5.2.9.
Server:
import socket def main(): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('', 8111)) sock.listen(5) while True: client, address = sock.accept() handle(client) def handle(client): while True: type = ord(client.recv(1)) print type if type == 8: client.sendall('\x06') break client.sendall('\x03') client.close() print "closed" main()
Client:
import socket def go(): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('127.0.0.1', 8111)) s.sendall('\x08') while True: type = ord(s.recv(1)) print "type ", type if type == 3: s.close() break for i in range(500): print i go()