akka/akka-http

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

Ouverte

#907 ouverte le 27 févr. 2017

 (5 commentaires) (10 réactions) (0 personne assignée)Scala (598 forks)batch import
1 - triagedhelp wantedt:core

Métriques du dépôt

Stars
 (1 311 étoiles)
Métriques de merge PR
 (Merge moyen 1j 10h) (2 PRs mergées en 30 j)

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.

Guide contributeur