Permalink
Browse files

Merge pull request #253 from BGehrels/master

Handling InterruptedExceptions in the HystrixMetricsStreamServlet
  • Loading branch information...
2 parents d815db9 + e6d8cd6 commit 2d14613b29768b923e3189afec8b694d23b7ea73 @benjchristensen benjchristensen committed May 5, 2014
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

0 comments on commit 2d14613

Please sign in to comment.