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)




"After all the anxiety I had with my previous data provider it is a relief not to have to worry about data speed and integrity." - Comment from Eamonn
"Excellent datafeed !!!" - Comment from Arely
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"Thank you so much - awesome feed, awesome service!" - Comment from Greg 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 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
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"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
"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
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: Sun May 19, 2024 3:39 AM CFBB v1.2.0 13 ms.
© AderSoftware 2002-2003