Support zero-downtime listener option reloads on an existing bind
I maintainer di solito rispondono entro 1 giorno
@benoitc ci sta già lavorando.
Dal 1/8/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Summary
It would be useful to support replacing listener options on an existing bind without an accept gap, especially for TLS certificate or transport-option changes.
Today a service owns its listen sockets. Starting the replacement first fails with eaddrinuse, while stopping or draining the current service first releases the socket but creates a period with no listener.
Desired behavior
A supported operation could:
- prepare the replacement listener on the existing address;
- atomically direct new accepts to it;
- let connections accepted by the previous listener drain;
- close the previous listener afterward.
Possible foundations could be explicit listen-socket handoff, pause/resume acceptance while retaining the socket, or documented SO_REUSEPORT support where the platform permits it. An in-place TLS-listener option update would also cover the common certificate-rotation case.
The existing stop_accepting/1 and drain/2 APIs handle connection draining well, but they close the listener before a same-bind replacement can start.
- Lingua principale
- Erlang
- Stelle
- 57
- Fork
- 2
- Merge medio
- 53m
- PR unite (30g)
- 10
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.