Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #253 from BGehrels/master

Handling InterruptedExceptions in the HystrixMetricsStreamServlet
  • Loading branch information...
commit 2d14613b29768b923e3189afec8b694d23b7ea73 2 parents d815db9 + e6d8cd6
@benjchristensen benjchristensen authored
View
4 ...ain/java/com/netflix/hystrix/contrib/metrics/eventstream/HystrixMetricsStreamServlet.java
@@ -150,6 +150,10 @@ private void handleRequest(HttpServletRequest request, HttpServletResponse respo
// now wait the 'delay' time
Thread.sleep(delay);
}
+ } catch (InterruptedException e) {
+ poller.shutdown();
+ logger.debug("InterruptedException. Will stop polling.");
+ Thread.currentThread().interrupt();
} catch (IOException e) {
poller.shutdown();
// debug instead of error as we expect to get these whenever a client disconnects or network issue occurs
Please sign in to comment.
Something went wrong with that request. Please try again.