Hi, I recently started a new project where the websocket client attempts to connect to a server every 5 seconds if its not connected. This is done under a timer. I've noticed rare #10083 popups and noticed they show up mostly when I'm using a VPN but also does when I'm not.
Hi, some of my customers are getting spammed by this and do not want to run those commands while some have reported it fixes nothing. Is it possible to suppress it?
Do you use WatchDog property of TsgcWebSocketClient or you use your own TTimer? if first, it there is any exception trying to connect it should be catched and throw to OnException event (at least with latest version). If your use your own TTimer, maybe the error is that while try to connect is still disconnecting from previous attempt to connect and client is still not initialized.
The connection is happening in a timer yes with a connect timeout of 1 second and the timer attempts a connection every 5 seconds. I tried to catch it on the "OnException" event however it does not seem to come from there. I will attempt to put a try except over the connection attempt to suppress it.
If you first check if Active property is False before set Active := True, you can get an exception reading Active property because internally calls to Connected property of Indy Socket connection, so an 10038 exception can be raised. But when you call Active := True, if there is any exception will be catched OnException event. So most probably you get the exception checking if connection is active or not.