Wax On, Wax Off

WaxOnWaxOffHTTP clients can be infuriating in that they generally work without a hiccup; until they don’t!

I recently wrote a utility to receive and then save streamed Bid/Ask data from OANDA; called OandaSink.  It wasn’t rocket science—some six hundred lines in all—so I turned it on and the program didn’t skip a beat for three solid weeks.  Then, for some unknowable reason,  the server forced a disconnect and all of my lovely retry / reconnect  logic didn’t do what it was supposed to.
Continue reading