question

Upvotes
Accepted
87 4 4 11

[EMA C++]How to set RequestTimeOut in EmaConfig.xml

HELLO:

I develop with EMA C++;

I my program, I use the "EmaConfig.xml"

I request quote of HKSE from TREP;

I get many error "Request timed out.".

I want to know how to set the RequestTimeOut in EmaConfig.xml.

errors:

EmaConfig.xml

emaconfig.txt

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api
1546844211.png (39.7 KiB)
emaconfig.txt (17.9 KiB)
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
4.4k 10 6 9

Hi @luxiangyuan

You can change the request timeout in "Consumer" node of the configuration:

<ConsumerList>
  <Consumer>
    <Name value="Consumer_1"/>
    <Channel value="Channel_1"/>
    <Logger value="Logger_1"/>
    <Dictionary value="Dictionary_1"/>
    <XmlTraceToStdout value="0"/>
    <RequestTimeout value="15000" />
  </Consumer>
</ConsumerList>

The value is in milliseconds. The default is 15 seconds.

icon clock
10 |1500

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

Click below to post an Idea Post Idea