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)




"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"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
"You have an excellent product !!!!!!" - Comment from Arely
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"It’s so nice to be working with real professionals!" - Comment from Len
"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 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
"I'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
"I ran your IQFeed DDE vs. my broker vs. a level II window for some slow-moving options. I would see the level II quote change, then your feed update instantaneously. My broker's DDE, however, would take as much as 30 seconds to update. I am not chasing milliseconds, but half a minute is unacceptable." - Comment from Rob
"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
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 »Disconnection from IQConnect.exe
Author Topic: Disconnection from IQConnect.exe (11 messages, Page 1 of 1)

RCA
-Interested User-
Posts: 6
Joined: Jun 22, 2017


Posted: Jun 22, 2017 04:50 PM          Msg. 1 of 11
Following a successful connection to the admin feed, I find that I get disconnected from the server seemingly at random some time after. This can be from 5 minutes to several hours after connecting. This is reported in the S,STATS messages on the admin feed. Calling S,CONNECT on the admin feed to reconnect has no effect. I can see in the S,STATS messages that IQConnect still believes that a connection exists. The only way I can reconnect is by killing IQConnect.exe and restarting both it and my application.

What is the best method to debug this and discover the reason?

What is the recommended procedure when a disconnection occurs to ensure that a reconnection happens as seamlessly as possible?

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jun 23, 2017 08:05 AM          Msg. 2 of 11
Good morning,

The best thing that we could do to start debugging, is after the next disconnection, is to email us your log file from the Documents\DTN\IQFeed folder (before you restart). If you need any help with this just let us know.

Tim

RCA
-Interested User-
Posts: 6
Joined: Jun 22, 2017


Posted: Jun 23, 2017 08:55 AM          Msg. 3 of 11
Hi Tim,

Logs below. It seems that the critical message is 'Ignoring attempts to reconnect due to pending shutdown', which would explain why I cannot reconnect with the S,CONNECT command.

Richard

TO CLIENT Admin 17816 4 2017-06-23 14:33:36 S,STATS,66.112.156.223,60003,500,1,3,0,3,7,Jun 23 2:12PM,Jun 23 09:33AM,Connected,5.2.6.0,466755,215.72,0.02,0.17,395.63,0.21,0.31,

STATUS Connectivity 17816 0 2017-06-23 14:33:37 Socket close called, socket valid, closing.
STATUS Connectivity 17816 0 2017-06-23 14:33:37 Close called, socket closed. 0
STATUS Connectivity 17816 0 2017-06-23 14:33:37 Close called, socket closed. 0
STATUS Connectivity 17816 0 2017-06-23 14:33:37 Stop called while feed was already disconnected. : 0 :1 : Not Connected
STATUS Connectivity 17816 0 2017-06-23 14:33:37 Ignoring attempts to reconnect due to pending shutdown.
TO CLIENT Admin 17816 4 2017-06-23 14:33:37 S,STATS,,,500,1,3,0,3,7,,,Not Connected,5.2.6.0,466755,215.72,0.02,,395.93,0.21,,

FROM CLIENT Admin 17816 4 2017-06-23 14:33:37 S,CONNECT

STATUS Connectivity 17816 0 2017-06-23 14:33:37 Starting Feed (1:0)
STATUS Connectivity 17816 0 2017-06-23 14:33:37 Initiating a login of type (2).
STATUS Connectivity 45848 0 2017-06-23 14:33:37 Connecting To Login Server - 66.112.156.210:60000
STATUS Connectivity 45848 0 2017-06-23 14:33:37 Connecting to server (66.112.156.210) on port 60000.
STATUS Connectivity 45848 0 2017-06-23 14:33:37 Connect Process: Status 1.
STATUS Connectivity 45848 0 2017-06-23 14:33:37 Connect Process: Status 2.
STATUS Connectivity 45848 0 2017-06-23 14:33:37 Connect Process: Status 3.
STATUS Connectivity 45848 0 2017-06-23 14:33:37 Connected to server 0.
STATUS Connectivity 17816 0 2017-06-23 14:33:38 Ignoring attempts to reconnect due to pending shutdown.
TO CLIENT Admin 17816 4 2017-06-23 14:33:38 S,STATS,,,500,1,3,0,3,8,,,Not Connected,5.2.6.0,466755,215.72,0.02,,396.01,0.21,,

STATUS Connectivity 45848 0 2017-06-23 14:33:38 Setting symbol limit to 500
STATUS Connectivity 45848 0 2017-06-23 14:33:38 Processed Server 15 (66.112.156.223:60003)
STATUS Connectivity 45848 0 2017-06-23 14:33:38 Connection to server 0 closed.
STATUS Connectivity 45848 0 2017-06-23 14:33:38 Connection to server (0) closed gracefully.
STATUS Connectivity 45848 0 2017-06-23 14:33:38 0 products left to authenticate. Ready
STATUS Connectivity 17816 0 2017-06-23 14:33:38 Authentication Complete - Debug value = 1
STATUS Connectivity 45848 0 2017-06-23 14:33:38 Resetting socket in authentication thread.
STATUS Connectivity 17816 0 2017-06-23 14:33:38 Login Initiated without IQ32.dll
STATUS Connectivity 17816 0 2017-06-23 14:33:39 Ignoring attempts to reconnect due to pending shutdown.
TO CLIENT Admin 17816 4 2017-06-23 14:33:39 S,STATS,,,500,1,3,0,3,8,,,Not Connected,5.2.6.0,466755,215.72,0.02,,396.09,0.21,,

RCA
-Interested User-
Posts: 6
Joined: Jun 22, 2017


Posted: Jun 23, 2017 09:11 AM          Msg. 4 of 11
Hi Tim,

My interpretation of this is that something is terminating a socket used for communication between IQConnect.exe and its server (it's unclear whether this is on the IQConnect.exe side or the server side) and then the shutdown is not completing for some reason. As the shutdown remains pending, subsequent attempts to reconnect from my Admin connection fail.

Why would this be happening?

Thanks,

Richard

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jun 23, 2017 09:45 AM          Msg. 5 of 11
If that is what is happening, it would be a bug that we would need to look at. But, if you can send me the log I can verify what is happening and try to re-create it. Without that, anything I could say would be a guess at best.

Tim

RCA
-Interested User-
Posts: 6
Joined: Jun 22, 2017


Posted: Jun 23, 2017 10:00 AM          Msg. 6 of 11
Hi Tim,

I have emailed you the log file.

Richard

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jun 23, 2017 10:14 AM          Msg. 7 of 11
It appears you are logging in on two separate machines and the second is bumping off the first.

If you are not doing this, just let us know and we will reset your password.

Tim

RCA
-Interested User-
Posts: 6
Joined: Jun 22, 2017


Posted: Jun 23, 2017 10:19 AM          Msg. 8 of 11
Hi Tim,

That is entirely possible - I have one machine which is running production software, but I am continuing development on another machine.
Are you saying that we cannot have two connections from two different machines using the same ProductID?
What is the recommended way to manage this scenario? Do we need an additional ProductID or additional UserName and PIN for development?

Richard

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jun 23, 2017 11:00 AM          Msg. 9 of 11
As many apps as you like can use your product ID. But, you will require two user IDs for this scenario. Exchange agreements do not allow for any single user ID to be able to access data in multiple places at the same time. So just contact our sales team and they can help set that up for you.

Tim
Edited by DTN_Tim Walter on Jun 23, 2017 at 11:01 AM

RCA
-Interested User-
Posts: 6
Joined: Jun 22, 2017


Posted: Jun 23, 2017 11:02 AM          Msg. 10 of 11
Hi Tim,

I was able to verify that you are correct, and that this is the cause. I will talk to sales ASAP.

Many thanks for your help

Richard

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Jun 23, 2017 11:03 AM          Msg. 11 of 11
Your certainly welcome. Glad we could track it down. Best of luck.

Tim
 

 

Time: Sat April 27, 2024 12:46 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003