akka/akka-http

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

Aperta

#907 aperta il 27 feb 2017

 (5 commenti) (10 reazioni) (0 assegnatari)Scala (598 fork)batch import
1 - triagedhelp wantedt:core

Metriche repository

Star
 (1311 stelle)
Metriche merge PR
 (Merge medio 1g 10h) (2 PR mergiate in 30 g)

Descrizione

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.

Guida contributor