mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 15:13:33 +01:00
Handle slow connections better (curl timeout) #156
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @joachimtingvold on GitHub (Oct 13, 2016).
Hi,
So, I had some issues with LE/dehydrated. I made a post on the LE Community.
The issue is specific to IPv6 (in my case), causing the
curl returned with 35error. Forcing dehydrated (and in turn, curl) to use IPv4 (with--ipv4), "solved" the issue. There are no noticable issues with our IPv6 connectivity, and RTT is also low towards the LE servers (both on IPv4 and IPv6), but curl still ends up using a lot of time on some of the queries over IPv6.Not sure if this is really an issue with LE's servers, but nontheless dehydrated should probably handle those errors more gracefully? I.e. by either a) retry the connection N times when it's
error 35, or b) extend the timeout? (afaik the default timeout of curl is0, which is "forever", so not sure whyerror 35is even the issue).My ugly measurement setup;
Did about 600 measurements, and ~60 of them had 5+ seconds. Most of them well below 30 seconds, and all of them below 60 seconds.
Any takers?
@joachimtingvold commented on GitHub (Oct 13, 2016):
Results from the measurement;
mtr over IPv4;
mtr over IPv6;
@joachimtingvold commented on GitHub (Oct 18, 2016):
So, the high request-time is gone (for now), but the point of this issue still remains (i.e. dehydrated should handle timeouts better).
@lukas2511 commented on GitHub (Jul 10, 2017):
Error handling is kinda hard in itself, and (at least for me) even harder in bash. So unless somebody starts paying me for work on this script I don't really want to implement retries and stuff, sorry.
But: I just implemented a cache for certificate chains which at least should lower the amount of http requests and with that lower the chance of one of them failing...