Hi - we've had issues with 'phantom' connections on one of the sockets!
Following this answer
http://forums.iqfeed.net/index.cfm?page=topic&topicID=3936, if we receive a "Could not connect to History socket" or "NO_DATA" error happens, we re-issue the request. This mostly works, but not always.
If the internet connection was lost, we have seen a problem where our software recognizes the IQFeed connection as alive, and retrys the command, but the command just keeps looping. Running IQFeed diagnostics, IQFeed was not running, but our software was still connected to this "phantom" connection on one of the sockets.
This occurred even when the internet was back on.
Also we find NO_DATA exceptions sometimes loops for minutes or hours, and if we stop the software and reload it, in most of the cases, the response is instant.
It seems to me that there is some error in sockets, which don't get a stable connection with IQFeed, so our solution is now to kill the IQFeed process and restart it if there are more than 5 socket errors.
Does this seem like a reasonable approach? Are there any other solutions or suggestions?
Thanks
Edited by david_leake on Dec 19, 2019 at 02:28 AM