Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase exchange-api starting timeout value #18

Closed
sirotsinskuy opened this issue Sep 17, 2020 · 2 comments
Closed

Increase exchange-api starting timeout value #18

sirotsinskuy opened this issue Sep 17, 2020 · 2 comments
Assignees

Comments

@sirotsinskuy
Copy link

It would be good to have the exchange-api starting timeout bigger that 20 seconds (at least 30 sec, maybe up to 1 minute), as it could be the problem for some users. For my case - I was able to fit into that timeout after 3 times of trying and each time I had
Error: can not reach the exchange at http://127.0.0.1:3090/v1 (tried for 20 seconds): curl: (52) Empty reply from server

@joewxboy
Copy link
Member

@bmpotter This is the second or third time I've heard this complaint from someone running the all-in-1 install script. On some machines and/or in some environments, they really need more time for the process to complete successfully. Would the solution be to increase the default timeout, allow an override for the timeout and discuss in documentation, or some other approach?

@bmpotter
Copy link
Member

@joewxboy there already are overrides. See all of the env vars, starting at

export HZN_LISTEN_IP=${HZN_LISTEN_IP:-127.0.0.1} # the host IP address the hub services should listen on. Can be set to 0.0.0.0 to mean all interfaces, including the public IP, altho this is not recommended, since the services use http.
. When there is syntax like:

export EXCHANGE_WAIT_ITERATIONS=${EXCHANGE_WAIT_ITERATIONS:-10}

that means use the value of EXCHANGE_WAIT_ITERATIONS the user has set in their environment, otherwise default to 10.

But i also just submitted a PR to increase the default and made you a reveiwer: #19

@bmpotter bmpotter closed this as completed Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants