Global Directory
Global Directory
EXPLORE OUR SITES
London Stock Exchange Group
LSEG Data & Analytics
MyAccount
LSEG Perspectives
London Stock Exchange
FTSE Russell
LCH
Contact Us
Home
TR Internal
How do I explicitly set the timeout for an HTTP request via the Infrastructure HTTP Client?
Ryan Morlok
How do I explicitly set the timeout for a HTTP request via our internal InfraHttpClient library (java)?
Find more posts tagged with
trep
http
refinitiv-internal
Accepted answers
Erik Hyrkas
You set it in your http-client xml file.
Point to the xml file in your local properties:
app.config.fileName=myfunfilename-http-client-local.xml
myfunfilename-http-client-local.xml will look like this:
<?xml version="1.0" encoding="UTF-8"?>
All comments
Erik Hyrkas
You set it in your http-client xml file.
Point to the xml file in your local properties:
app.config.fileName=myfunfilename-http-client-local.xml
myfunfilename-http-client-local.xml will look like this:
<?xml version="1.0" encoding="UTF-8"?>
Ryan Morlok
Thanks Erik. I'll do that. I was hoping there was just a parameter on a constructor I was missing or something. But this will work.
Erik Hyrkas
That would be handy. I'm not aware of a way to set timeouts another way.
BTW, I think you can use the asterisks (*) as part of the URL Pattern.
Ryan Morlok
As a quick follow up for future reference, when you want to update these values for the deployed code, the config xml file is set in the http.client CMDB configuration property.
Quick Links
All Forums
Recent Questions
Terms of use
Privacy & Cookie Statement
Cookies settings
Do not sell my info
Whistleblowing
UK Bribery Act
Modern Slavery Act