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)




"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"I will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - 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: Tue May 7, 2024 3:26 AM CFBB v1.2.0 13 ms.
© AderSoftware 2002-2003