I've been hitting problems with a Python-based robot I'm working on and just found out that there's a timeout module that will make it easy to implement the kind of functionality that Tim Bray was suggesting here earlier. It apparently works for any TCP connection. Here's the link:
http://www.timo-tasi.org/python/timeoutsocket.py -- [EMAIL PROTECTED] (408) 904-7198