I need to change rdesktop and  thinstation to support client reconnnection to an alternate server when the main RDP server is unavailable.  I believe I understand how the thinstation scripts work; however, I believe I also need to change rdesktop.

If I disconnect the link to my RDP server, thinstation scripts do not initiate reconnection attempts until either a long timeout occurs (>= 15 minutes ?) or there is user activity.   I need rdesktop to report connection loss much more quickly, and irrespective of whether there is user activity at the client, e.g. mouse clicks, keyboard activity, etc.   An idle RDP session that is disconnected should cause rdesktop to throw a signal, exit with a status, etc. that the thinstation scripts could use to initiate alternate server connection.

I'm an rdesktop newbie.  Any suggestions on where to start looking?