I suggest implementing a timeout on the rest fetch - so the servlet does not hang. The timeout should be something like 5 or 8 seconds. You may need to make a test servlet for this purpose that can halt a predefined amount of time, so you can catch your fetch code in a working timeout abortion.
I suggest implementing a timeout on the rest fetch - so the servlet does not hang. The timeout should be something like 5 or 8 seconds. You may need to make a test servlet for this purpose that can halt a predefined amount of time, so you can catch your fetch code in a working timeout abortion.