-
October 21st, 2015, 04:24 PM
#31
Ok William,
I've misinterpreted MYLSSESSIONID (very similar to MYSESSIONID), sorry...
The commands seem right, but with no direct access to the system is very hard to understand what goes wrong.
If it is ok for you, send me via private mail your credentials in order to reproduce the case.
Regards,
Gianluca.
-
October 21st, 2015, 07:26 PM
#32
Hi William,
issues are involved in LS_id and LS_schema parameters. It's not clear to me how many different items and related field schemas are available from Cityindex, but reading through their forum, it seems the following should work:
LS_id=PRICE.400616114
LS_schema=MarketId%20TickDate%20Bid%20Offer%20Pric e
Here the Python version:
Let me know.
Gianluca
-
October 21st, 2015, 09:30 PM
#33
Hi Gianluca, sorry to trouble you again 
After the login and the subscriptions, after about 20-40 minutes I correctly receive push updates from IG, I don't receive any push update anymore, like if the connection is lost.
This behavior is sistematic and reproducible with others PC or internet connections.
The workaround I adopted is to setup a timer that if he see e.g. 20 seconds of silence, re-login and make subscriptions again but...this happen each 20 minutes, it is too frequent...
Do you have any other solution / advice ? Could it be caused by the program that doesn't elaborate push updates enough quick?
Thanks again!
Colombao
Last edited by Colombao; October 30th, 2015 at 04:52 PM.
-
October 22nd, 2015, 04:13 AM
#34
Hello Gianluca - this is excellent! With your help I got both the plain curl commands working as well as the python script, which I will use for my purposes down the line. Thanks so much! I will continue with the implementation with other parts, that are more broker-specific, and I will post a working code soon. Thanks again,
William
-
October 22nd, 2015, 03:35 PM
#35
Hi Dario,
this is a known problem but thank you for reporting it. I'm going to fix the demo and I'll let you know once done.
Thanks and Regards,
Gianluca
-
October 23rd, 2015, 11:22 AM
#36
Hi Dario,
I've just released on Github a new version of the Basic StockList-Demo with support for bind operation, which allows a "fluent" streaming with no need of workarounds.
If you are interested at the protocol details, here you can find an exhaustive explanation [Par. 4.2].
Let me know.
Regards,
Gianluca
-
October 24th, 2015, 03:29 AM
#37
This is great, thanks, Gianluca. I notice that reproducible interruption as well and I just started simple workaround with a ten minute duration for the streaming and a ten min periodic restart via cronjob, but your fix will be much better. (This may be intentional, but I noticed you kept the debug mode in line 397.)
Last edited by socalwill; October 24th, 2015 at 03:56 AM.
-
October 25th, 2015, 09:37 AM
#38
Hi William,
I confirm that such workarounds go against the "session binding" as designed inside the Lightstreamer Server, so it is better to avoid them and to use the right features the Lightstreamer Network Protocol offers to leverage the power of the server.
Keeping the debug mode was a misprint, now I've fixed it and the source code is available on Github.
Thanks and Regards,
Gianluca
-
October 30th, 2015, 05:03 PM
#39
Gianluca, with your last update the number of interruptions decreased dramatically. Gianluca the best!
-
October 30th, 2015, 05:38 PM
#40
Hi Dario,
thanks to your precious feedback I was finally able to fix last minor bugs. Now the implementation seems stable even when connected to several Lightstreamer instances deployed in a cluster.
Thank You!
Gianluca
Similar Threads
-
By Alessandro in forum Client SDKs
Replies: 1
Last Post: December 18th, 2014, 05:15 PM
-
By keyan in forum Client SDKs
Replies: 4
Last Post: December 18th, 2014, 05:12 PM
-
By subuta in forum Client SDKs
Replies: 2
Last Post: January 5th, 2012, 08:53 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 11:17 AM.
Bookmarks