-
Notifications
You must be signed in to change notification settings - Fork 325
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
There's no way to set connect timeout for the Esplora backend client #826
Comments
Is the timeout you need different than the |
The docs say that the I'm running the Tor example and in most of the cases I get this error, even though I set the
It fails to connect after 29.999 seconds, so apparently the client uses a different value for the connect timeout. |
Probably, it's related to Socks5 proxy. |
Does that mean you can fix it by reconfiguring your Socks5 proxy? If so can you comment on how you do that and close this issue? |
There no timeout config parameter that I'm change in my Socks5 proxy https://github.com/torproject/tor/blob/main/src/config/torrc.sample.in Sometimes it take a wile to connect via tor, eg: $ time curl --connect-timeout 1000 -x socks5h://localhost:9050 http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/testnet/api
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
real 1m21.150s
user 0m0.009s
sys 0m0.016s It's way more than 29.999 seconds the example uses for some reason, despite I set the timeout to 120 seconds. |
The client often fails to connect over Tor due to timeout. It might be a good idea to make it configurable.
It's possible can set socket timeout though, which is good.
The text was updated successfully, but these errors were encountered: