Is there a defined timeout for the TOR control protocol? How long should a control port client wait around for socket data when reading? Or writing? The only references to timeouts that I find in control-spec.txt are about circuit and stream timeouts reported back through the control port.
I'm not aware of one (though that certainly doesn't mean there isn't any). What in particular are you trying to solve? -Damian