Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

quic: expose an API for client connection migration

Offen
#65,429 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, node.js
Bereich
api, networking

Rechercherichtung

Beginne mit der Durchsicht des Abschnitts zur Verbindungs migration in RFC 9000, der Deklaration von ngtcp2_conn_initiate_migration() im verlinkten ngtcp2-Header und der früheren Node.js QuicClientSession.migrate()-API. Vergleiche diese mit dem in manNomi/node#5 verlinkten Prototyp; die Arbeit ist abgeschlossen, wenn die Form der öffentlichen Node.js-API und das Migrationsverhalten vereinbart und spezifiziert sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

feature request quic
What is the problem this feature will solve?

The current experimental node:quic API does not expose a way for a client to
intentionally move an established QuicSession to another local
QuicEndpoint. This is useful when an application wants to move a connection
between network interfaces or local UDP ports while preserving the existing
QUIC session, streams, and datagram flows.

Reconnecting is not equivalent because it discards the existing session state
and requires another handshake. Passive NAT rebinding also does not let an
application explicitly select a new local socket or interface.

RFC 9000 defines client-initiated connection migration. The
current API already exposes QuicEndpoint, session.path, and
session.onpathvalidation, and the bundled ngtcp2 implementation provides
ngtcp2_conn_initiate_migration(). The earlier experimental
Node.js QUIC API also exposed
QuicClientSession.migrate(quicSocket).

Would the QUIC team be interested in exposing this capability in the current
API?

What is the feature you are proposing to solve the problem?

One possible high-level API would be:

await session.migrate(endpoint);

The proposed behavior would be:

  • It is available only for client sessions after the handshake is confirmed.
  • An unbound target endpoint is bound before path validation begins.
  • It rejects if the peer advertised disable_active_migration or if validation
    of the new path fails.
  • It resolves after the new path has been validated and selected as the active
    path.
  • Existing streams and datagram flows remain attached to the same session, and
    session.path reflects the new active path.

There are two related API questions where feedback would be useful:

  1. Should Node.js expose one high-level migrate(endpoint) operation, or a
    lower-level path abstraction that separates probing from switching?
  2. Should server transport parameters expose a disableActiveMigration option
    for deployments that cannot preserve connection routing when a client's
    address changes?

I have explored a proof of concept in manNomi/node#5, but I would
like to agree on the public API shape before opening an upstream pull request.

What alternatives have you considered?

One alternative is to expose a path-oriented API similar to quic-go:

const path = session.addPath(endpoint);
await path.probe();
path.switch();
path.close();

This gives applications control over when a candidate path is validated and
when it becomes active, but adds another public abstraction and more lifecycle
management.

Applications can instead create a new QUIC session or rely on OS routing and
passive NAT rebinding. Neither option provides explicit migration to a chosen
local endpoint while preserving the existing session and its streams.

Vorherrschende Sprache
JavaScript
Sterne
122k
Forks
37.4k
Ø Merge
4 T. 3 Std.
Gemergte PRs (30 T.)
279

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus nodejs/node

Alle Issues in nodejs/node

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.