Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • ETA /
avatar image
Question by derek.li2 · May 20, 2016 at 04:50 AM · elektronupaETA

repeatedly call rsslInitChannel when channel in Initializing state?

In my dev env, my test program called 16,000 times within 50ms. Do we have to repeatedly call rsslInitChannel when channel in Initializing state?

Steven McCoy

People who like this

1 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Steven McCoy · May 20, 2016 at 09:57 AM

Yes, the documentation states one only needs to call RsslInitChannel when the socket indicates you can read without blocking.

For TCP transports the protocol works fine when only calling on write-without-blocking event and ignoring read-without-blocking. Note that the examples do neither and simply call based upon an elapsed timer.

Example consumer event loop ignoring read-without-blocking.

From RDC Case: 04096919 when using the Java API, the documentation states:

Typically, calls to the Channel.init method are driven by I/O on the connection, however this can also be accomplished by using a timer to periodically call the method or looping on a call until the channel transitions to active or a failure occurs. Other than any overhead associated with the method call, there is no harm in calling init more frequently than required. If no work is required at the current time, the method will return and indicate that connection is still in progress.

"In short, there are two way to initialize the channel. Using a timer or loop to call the init method until the channel transitions to active or a failure occurs Using I/O driven to call the init method"

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
4 People are following this question.

Related Questions

How to know when BDS (SymbolLists) are available after Elektron Server reboot

does streamState in RsslStatusMsg indicate status of a particular streamId?

Is there a way to get a specific field entry from the field list without having to go through the entire fieldList that is received?

Spurious Channel "UP" event received in the middle of Elektron Edge device reboot disrupting ETA reactor "Reconnect" logic

How to determine ElektronSDK version at compile time?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges