Up till now, today, everything OK!
From Ib's forum:
http://www.interactivebrokers.com/discus/messages/2/29972.html?1123124934
Skunk and Bob:
Thanks for the error codes... it seems so silly, however, to force a TWS and API client app(s) close and restart, when TWS clearly knows that it is disconnected, and it would (seemingly) be so easy for TWS to simply attempt a reconnect every 5 mins or whatever...
Also, the problem with detecting inactivity is that there are plenty of markets (read: futures markets that I am trading) that routinely have 5+ minutes of real inactivity.
Interactive Brokers: Do you have any plans to make TWS attempt data farm reconnects? Or should I program a restart mechanism?
----------------------------------------------------
I got nailed earlier from 12-1 PM Eastern Time (US). I just got lucky the market barely moved during that time.
Although those messages may work (how can you test it???) I think I want to program my application to detect a lost connection by a lack of activity over a few minutes (say 5) then automatically kill TWS and restart it and then reconnect.
Of course programming the backfill will be the real pain in the â¢â¢â¢!!!!
SSB