Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"You have an excellent product !!!!!!" - Comment from Arely
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »Socket problems
Author Topic: Socket problems (2 messages, Page 1 of 1)

david_leake
-Interested User-
Posts: 4
Joined: Nov 18, 2017


Posted: Dec 16, 2019 12:40 PM          Msg. 1 of 2
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

DTN_Gary_Stephen
-DTN Guru-
Posts: 396
Joined: Jul 3, 2019


Posted: Jan 6, 2020 05:35 PM          Msg. 2 of 2
David,

Hello, this is Gary Stephen with DTNIQFeed API Support. I apologize for the slow reply on this.

First, let's clarify that these are two different things. "Could not connect" means you can’t connect, “NO_DATA” means you ARE connected, but your request did not turn up any data (like searching at a time the market is closed). That is a reply from the server.

Re-requesting a connection when you get "unable to connect" is fine. And probably a good idea, the Internet being a unreliable sometimes. But I'm puzzled at the behavior of the NO_DATA responses; in these cases, you already are connected, so re-connecting isn't going to do anything. And an API command responds NO_DATA, it should always respond NO_DATA (except in some rare circumstances during maintenance times when data may be offline).

In this "phantom connection", what exactly remained connected? If you don't have a port connection, IQConnect.exe will shut itself down within 30 seconds. So there should be no lingering connetions. I would want to do some port checks and see what's still connected. What else can you tell me about the circumstances bring about these NO_DATA responses you've mentioned?

Sincerely,
Gary Stephen
DTN IQFeed API Support

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist
 

 

Time: Wed May 8, 2024 4:34 AM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003