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

luxiangyuan
luxiangyuan Contributor

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:

image

EmaConfig.xml

emaconfig.txt

Best Answer

  • warat.boonyanit
    Answer ✓

    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.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.