question

Upvotes
Accepted
87 7 13 27

[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-sdkema-apirrtelektron-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 512.0 KiB each and 1.0 MiB total.

Hello @luxiangyuan

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

1 Answer

· Write an 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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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