Add HTTP timeouts and retry to DHL tracking requests
No connect/socket timeout was configured on the HTTP client, and
TrackingService.track() only retried after receiving an HTTP 429/500
response - a connection-level IOException (e.g. a stalled connection)
propagated uncaught, failing the whole batch on a single parcel.
Add timeouts and retry with backoff on IOException around the
request execution.
1 parent 39a7c0c commit f5738e1eaed39f03da1c07b347b39970403e515c
@Your Name Your Name authored on 18 Jun
Showing 2 changed files
View
src/main/java/io/ljunggren/dhl/api/service/BaseService.java
View
src/main/java/io/ljunggren/dhl/api/service/TrackingService.java