WiFi Shield - Heartbeat Code

As some of you must know that use the WiFi shield there is an issue where the shield drops the TCP connection after about 2 seconds this makes building projects very very annoying. I still have not been able to get around this issue. Can anyone help by pointing out some heartbeat code that will keep the connection alive indefinitely.

Some background info if you dont know what I am talking about.

http://arduino.cc/forum/index.php/topic,128424.0.html