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 like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"It’s so nice to be working with real professionals!" - Comment from Len
"Excellent datafeed !!!" - Comment from Arely
"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
"If you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
"I was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
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: Wed May 1, 2024 9:18 PM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003