Joined: |
Aug 10, 2014 01:12 PM |
Last Post: |
Aug 12, 2014 01:21 PM |
Last Visit: |
Aug 12, 2014 02:13 PM |
Website: |
|
Location: |
|
Occupation: |
|
Interests: |
|
|
AIM: |
|
ICQ: |
|
MSN IM: |
|
Yahoo IM: |
|
|
rkamaly has contributed to 6 posts out of 21251 total posts
(0.03%) in 3,876 days (0.00 posts per day).
20 Most recent posts:
Attaching the client status window for further information.
Also if I were to exit the client from the system tray. The process still lingers on, and I have to kill it with task manager.
Hi Tim,
Thank you for your prompt response. I have changed the number of open connections to 3 now and am still facing these issues.
Have send out an email with the relevant java code packages attached.
Thanks for the assistance again.
^_^
Btw, am using 20 threads simultaneously, whilst opening and closing em for every HTT request
Hi,
I am currently using java to connect to iqfeed to retrieve historical data. Am using multiple threads to fetch a HTT request. Each thread creates a Feed object whose life cycle looks like this
public void open() throws IOException { this.socket = new Socket(InetAddress.getByName(FEED_HOST), FEED_PORT); this.socketReader = new BufferedReader(new InputStreamReader(socket.getInputStream())); this.socketWriter = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); }
public void close() throws IOException { this.socket.shutdownOutput(); this.socket.shutdownInput(); this.socket.close(); this.socketReader.close(); this.socketWriter.close(); LOGGER.debug("closing connection"); }
After running the process for about 10 symbols and their related option chain, the code just balks. Upon inspection of the feed client ui, it indeed does say there are some connections open. These connections still appear to be active, after the java proc is killed.
Strangeness ensues, when I try to kill the iqconnect.exe from the tray. It looks like it's gone, but is still visible in the windows task manager tab. After I kill it from there, I am able to rerun the historical data pull.
Please advice on how to resolve this.
Thanks!
I would like to express interest in this feature as well. As building option chains from symbology sometimes is not feasible.
|
|