I have a similar problem trying to send a lot of data back and forth using udp. I have been trying and trying to figure out a solution to no avail. I bought a TTL USB cable so I could use the hardware serial port on the UNO to talk to the wifly. It was an improvement but still has issues.