Support zero-downtime listener option reloads on an existing bind

Aperta
#77 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

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:

  1. prepare the replacement listener on the existing address;
  2. atomically direct new accepts to it;
  3. let connections accepted by the previous listener drain;
  4. 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di benoitc/livery

Tutte le issue di benoitc/livery

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.