Open-EO / openeo-spring-driver

openEO driver build on spring using WCPS and ODC storage access
Apache License 2.0
0 stars 0 forks source link

Server automatically retry a request if it fails #77

Closed clausmichele closed 1 year ago

clausmichele commented 1 year ago

I'm trying to implement the stopJob functionality for the ODC engine. There is an issue with HttpURLConnection, which is used to send the request to the ODC endpoint and get the result. If the request fails (which is the case if we stop the job an another thread), it automatically tries the request again.

The same issue has been described here: https://stackoverflow.com/questions/12363913/does-httpsurlconnection-getinputstream-makes-automatic-retries

The author suggests to use a different library since there was no other obvious solution to deactivate the retry option.

clausmichele commented 1 year ago

This issue has been solved