Skip to content

Commit

Permalink
quic: clarify TODO statements
Browse files Browse the repository at this point in the history
PR-URL: #34741
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
jasnell committed Aug 17, 2020
1 parent 19e712b commit 94aa291
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/quic/node_quic_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,16 @@ void QuicSessionConfig::Set(
// TODO(@jasnell): QUIC allows both IPv4 and IPv6 addresses to be
// specified. Here we're specifying one or the other. Need to
// determine if that's what we want or should we support both.
//
// TODO(@jasnell): Currently, this is specified as a single value
// that is used for all connections. In the future, it may be
// necessary to determine the preferred address based on the
// remote address. The trick, however, is that the preferred
// address must be selected before the QuicSession is created,
// before the handshake can be started. That is, it may need
// to be an optional callback on QuicSocket. That would incur
// a performance penalty so we'd really have to be sure of the
// utility.
if (preferred_addr != nullptr) {
transport_params.preferred_address_present = 1;
switch (preferred_addr->sa_family) {
Expand Down

0 comments on commit 94aa291

Please sign in to comment.