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)




"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"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
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"Boy, probably spent a thousand hours trying to get ******* API to work right. And now two hours to have something running with IQFeed. Hmmm, guess I was pretty stupid to fight rather than switch all this time. And have gotten more customer service from you guys already than total from them… in five years." - Comment from Jim
"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
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
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 »Not Connected problems after the new year
Author Topic: Not Connected problems after the new year (3 messages, Page 1 of 1)

sappjason
-Interested User-
Posts: 8
Joined: Nov 5, 2009


Posted: Jan 7, 2013 08:14 AM          Msg. 1 of 3
I've been running fine for the past year or so with no problems what-so-ever, but after the new year, I must reboot my server every morning in order to properly connect to IQFeed. My application is written in Java and I use IQFeed 4.9.0.3 on a Windows Server 2008 running 68 bit.

One (possibly important) point is that my application connects to IQFeed in the morning and typically disconnects in the evening around 9:00PM. However, the iqconnect.exe will sometimes stay up all night (not always, but sometimes).

Anyway, the technique the I use to connect is as follows (with autologin information provided in the IQFeed dialog box):

-----------------------------------------------------------------------------------------------------
Runtime.getRuntime().exec ("iqconnect.exe -product PRODUCT_NAME -version 1.0");
Thread.sleep (5000);

Socket sockAdmin = new Socket(InetAddress.getByName("localhost"), 9300);
BufferedReader bufreadAdmin = new BufferedReader (new
InputStreamReader (sockAdmin.getInputStream()));
BufferedWriter bufwriteAdmin = new BufferedWriter (new
OutputStreamWriter (sockAdmin.getOutputStream()));
String strAdminLine = "";
// loop while we are still connected to the admin port or until we are connected
while (((strAdminLine = bufreadAdmin.readLine()) != null) && !bConnected)
{
System.out.println (strAdminLine);
if (strAdminLine.indexOf (",Connected,") > -1)
{
System.out.println ("IQConnect is connected to the server.");
bConnected = true;
}
else if (strAdminLine.indexOf (",Not Connected,") > -1)
{
System.out.println ("IQConnect is Not Connected.\r\nSending connect command.");
bufwriteAdmin.write ("S,CONNECT\r\n");
bufwriteAdmin.flush ();
}
}

// cleanup admin port connection
sockAdmin.shutdownOutput();
sockAdmin.shutdownInput();
sockAdmin.close();
bufreadAdmin.close();
bufwriteAdmin.close();
iqFeedStarted = true;


------------------------------------------------------------------------------------------------------

Thanks,

Jason

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Jan 7, 2013 08:32 AM          Msg. 2 of 3
Jason, what would be more important in this scenario would be how you are disconnecting from the feed since it seems that IQConnect is remaining running after your app closes.

When you shutdown your app, does the connection manager still show in your system tray/notification area? If so, what does the Clients Connected show? If not, does iqconnect.exe still show up in the list of running processes?

If the Clients Connected shows zero, what is the value of the following registry key?
HKEY_CURRENT_USER\Software\DTN\IQFeed\Startup\ShutdownDelayLastClient

Lastly, what exactly happens when you try to connect again? Are you not able to connect to the Admin port or is there some other issue?

sappjason
-Interested User-
Posts: 8
Joined: Nov 5, 2009


Posted: Jan 7, 2013 11:38 AM          Msg. 3 of 3
Steve,

I'll have to update the ticket tomorrow as I cannot reproduce it until the next morning.

Thanks,

Jason
 

 

Time: Sat May 4, 2024 7:28 PM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003