akka/akka-http

Use new shutdown hooks in Akka 2.5 to prevent AbruptTerminationException in Http infrastructure

Open

#907 opened on Feb 27, 2017

View on GitHub
 (5 comments) (10 reactions) (0 assignees)Scala (598 forks)batch import
1 - triagedhelp wantedt:core

Repository metrics

Stars
 (1,311 stars)
PR merge metrics
 (Avg merge 1d 10h) (2 merged PRs in 30d)

Description

There are already some hook phases pre-allocated for exactly this purpose.

All active components should be shutdown in the hook:

  • Http().shutdownAllConnectionPools
  • Also introduce some infrastructure to track open server bindings and shut them down.

Contributor guide