use rfile.read() instead of sock.recv()