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 just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"I am keeping IQFeed, much better reliabilty than *******. I may refer a few other people in the office to switch as well." - Comment from Don
"I've been using Neoticker RT with IQFeed for two months, and I'm very happy with both of the products (I've had IQFeed for two years with very few complaints). The service from both companies is exceptional." - Comment from Public Forum
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"I just wanted to tell you what a fine job you have been doing. While *******, from what I hear, has been down and out, off and on, IQ feed has held like a champ this week." - Comment from Shirin
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
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 »IQConnect freezes client app socket
Author Topic: IQConnect freezes client app socket (1 messages, Page 1 of 1)

mvo
-Interested User-
Posts: 8
Joined: Apr 8, 2009


Posted: Apr 8, 2009 02:43 PM          Msg. 1 of 1
Hello,

I noticed that during a fast moving market IQConnect often freezes and takes almost entire CPU core.
Yet at the same time my client application, that is doing nothing but poll() and read(), is running completely idle.
In fact, at the time when I see CPU IQConnect CPU usage hitting 95%+, my app is sitting on poll() waiting for the socket to become ready to read.
Apparently IQConnect overflows its internal socket buffer and blocks the socket almost entirely. In such cases poll() returns readable status only once a minute or so.

The first solution that came to my mid was to open an individual socket for each symbol (out of 500) I am watching, or one for all symbols beginning with 'A', one with 'B', etc.. 26 total.
Theoretically, the average socket buffer fill-up rate should be reduced by the factor that equals to the number of sockets and effectively "spread" the peak data load among multiple socket buffers, thus allowing my client app to read each of them sequentially or in parallel.

My questions are following:
1. How many simultaneous socket connections do you allow per account / IQClient session?
2. Do I need to initialize the connection once or for each socket?

Thanks,
M.
 

 

Time: Tue May 7, 2024 6:37 PM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003