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)

"I "bracket trade" all major news releases and I have not found one lag or glitch with DTN.IQ feed. I am very comfortable with their feed under all typical news conditions (Fed releases, employment numbers, etc)." - Comment from Public Forum
"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
"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
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"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
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"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
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 »IQFeed Developer »IQFeed Developer Support »getting many SocketTimeoutExceptions in version
Author Topic: getting many SocketTimeoutExceptions in version (4 messages, Page 1 of 1)

-Interested User-
Posts: 28
Joined: Apr 9, 2005

Posted: May 16, 2007 10:14 PM          Msg. 1 of 4
Hello, I just updated from developer version to the new version (I am really, really risk adverse). Anyhow, I do only look up in Historical TCP/IP mode - lots and lots a day.

The error I am seeing is that it is throwing a SocketTimeoutException while reading from a socket. The exception message is: "Read timed out"

Here is the relevant code:

//write to the socket
sout.write( command );

//read the response from the socket
String line = sin.readLine();

while( line != null && !line.trim().equals( "!ENDMSG!" ) )
if( line.length() != 0 )
// we do something
line = sin.readLine();
catch( SocketTimeoutException timeoutException )


Any ideas?

-DTN Guru-
Posts: 2088
Joined: Nov 21, 2005

Posted: May 17, 2007 09:46 AM          Msg. 2 of 4
After doing a bit of research, I am not sure why this would be happening for you.

Can you give some more inforamtion about the requests? Are you able to complete any requests at all? If so, does the error occur randomly or is it always on a specific request?

Have you tried to enable logging in IQConnect to see if an error is output to the log by IQConnect?

-Interested User-
Posts: 28
Joined: Apr 9, 2005

Posted: May 17, 2007 11:32 AM          Msg. 3 of 4
I will definitely turn on the logging but, after re-examining the code, I have another theory that may solve it. Here is what I think is happening.

I am registering with the DTNClient and making calls. Then I think the socket is dying ('Read Time Out' and then all subsequent calls die until the socket can be re-established. If this theory is correct, is a way to listen for socket issues/statuses on the client?

-Interested User-
Posts: 28
Joined: Apr 9, 2005

Posted: Jun 4, 2007 11:18 AM          Msg. 4 of 4
For completeness, we determined that this had nothing to do with DTN, but it was a network routing issue on our end.


Time: Wed April 1, 2020 1:36 PM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003