Skip to content

Commit

Permalink
Merge pull request #253 from BGehrels/master
Browse files Browse the repository at this point in the history
Handling InterruptedExceptions in the HystrixMetricsStreamServlet
  • Loading branch information
benjchristensen committed May 5, 2014
2 parents d815db9 + e6d8cd6 commit 2d14613
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit 2d14613

Please sign in to comment.