Add HTTP timeouts and retry to USPS auth token fetch
Same gap as UPS/FedEx: no connect/socket timeout on the HTTP client,
and authorize() let any IOException from the token request propagate
uncaught, failing the whole batch on a single transient network blip.
Add timeouts and retry with backoff on IOException, while preserving
the existing status-code-based error handling (429/503).
1 parent 1f0d522 commit 755c6ab80bf031e20a9f9832bdf7ff4bbf985da3
@Your Name Your Name authored on 18 Jun
Showing 2 changed files
View
src/main/java/io/ljunggren/usps/api/service/BaseService.java
View
src/main/java/io/ljunggren/usps/api/service/OauthService.java