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)




"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
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"I noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"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
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"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 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 am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
Home  Search  Register  Login  Blogs Recent Posts

Information on Various DTN Products:
DTN IQFeed | DTN ProphetX | DTN Ag | NxCore
Follow DTN_IQFeed on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »IQFeed Developer »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: 1014
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: 1014
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: 1014
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: 1014
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: 1014
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: Tue June 27, 2017 5:30 AM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003