What does the Tor Project recommend to be the best timeout setting to use when contacting an onion service?
I'm wrapping an ancient perl script with
torsocks so that it can reach my website via its
.onion address, but I'm getting a lot of these errors
torsocks[xxxx]: Connection timed out (in socks5_recv_connect_reply() at socks5.c:547) torsocks[yyyy]: Host unreachable (in socks5_recv_connect_reply() at socks5.c:539)
The perl script defaults to a timeout of 30 seconds, but I know that we should expect higher latency on the Tor network.
I also know that Tor Browser is a modified version of Firefox, so I wonder: does the Tor Project make any modifications to the default timeouts of Firefox when shipping the Tor Browser so it is more tolerant of this latency? If so, what?
What does the Tor Project best-practices suggest that we should use for timeouts (in seconds) when attempting to reach an onion service?