Add HTTP timeouts and retry to UPS auth token fetch
A hung connection to onlinetools.ups.com had no timeout, so it would
stall for minutes before failing, and the resulting exception from
getAuthToken() was uncaught, killing the entire batch before any
parcels were processed. Add connect/socket timeouts and retry with
backoff on IOException for the token request.
1 parent 447e87c commit fa2ce9acbb93b33ab1dfbbeb51d950b3ae0f8750
@Your Name Your Name authored on 18 Jun
Showing 2 changed files
View
src/main/java/io/ljunggren/ups/api/service/BaseService.java
View
src/main/java/io/ljunggren/ups/api/service/OauthService.java