summaryrefslogtreecommitdiff
path: root/app/httpclient.go
Commit message (Collapse)AuthorAgeFilesLines
* feat: throttle and time out outbound DeviantArt requestsChristian Cleberg2026-07-141-0/+68
DeviantArt fronts its API with CloudFront + WAF, which bans egress IPs that hit it too hard. devianter issues requests with a bare http.Client, so unbounded concurrent handlers each pulled ~150-200 KB of JSON, which both risked a ban and could exhaust the process under a bot flood. Wrap the default transport to bound rate and concurrency for deviantart.com and add timeouts. Other hosts (wixmp image CDN) pass straight through, so media stays fast, and ProxyFromEnvironment is preserved so HTTPS_PROXY egress still works.