src,lib: implement experimental DTLS API · nodejs/node@436748f

1 min read Original article ↗
Original file line numberDiff line numberDiff line change

@@ -1073,6 +1073,12 @@

10731073

default=None,

10741074

help='build with experimental QUIC support')

10751075
1076+

parser.add_argument('--experimental-dtls',

1077+

action='store_true',

1078+

dest='experimental_dtls',

1079+

default=None,

1080+

help='build with experimental DTLS support')

1081+
10761082

parser.add_argument('--ninja',

10771083

action='store_true',

10781084

dest='use_ninja',

@@ -2362,6 +2368,10 @@ def configure_quic(o):

23622368

o['variables']['node_use_quic'] = b(options.experimental_quic and

23632369

not options.without_ssl)

23642370
2371+

def configure_dtls(o):

2372+

o['variables']['node_use_dtls'] = b(options.experimental_dtls and

2373+

not options.without_ssl)

2374+
23652375

def configure_static(o):

23662376

if options.fully_static or options.partly_static:

23672377

if flavor == 'mac':

@@ -2820,6 +2830,7 @@ def make_bin_override():

28202830

configure_v8(output, configurations)

28212831

configure_openssl(output)

28222832

configure_quic(output)

2833+

configure_dtls(output)

28232834

configure_intl(output)

28242835

configure_static(output)

28252836

configure_inspector(output)

Original file line numberDiff line numberDiff line change

@@ -1212,6 +1212,17 @@ If present, Node.js will look for a

12121212

`node.config.json` file in the current working directory and load it as a

12131213

configuration file.

12141214
1215+

### `--experimental-dtls`

1216+
1217+

<!-- YAML

1218+

added: REPLACEME

1219+

-->

1220+
1221+

> Stability: 1 - Experimental

1222+
1223+

Enable experimental support for the DTLS protocol. See the

1224+

[dtls documentation][] for details.

1225+
12151226

### `--experimental-eventsource`

12161227
12171228

<!-- YAML

@@ -3760,6 +3771,7 @@ one is included in the list below.

37603771

* `--experimental-abortcontroller`

37613772

* `--experimental-addon-modules`

37623773

* `--experimental-detect-module`

3774+

* `--experimental-dtls`

37633775

* `--experimental-eventsource`

37643776

* `--experimental-ffi`

37653777

* `--experimental-import-meta-resolve`

@@ -4431,6 +4443,7 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12

44314443

[debugger]: debugger.md

44324444

[debugging security implications]: https://nodejs.org/en/docs/guides/debugging-getting-started/#security-implications

44334445

[deprecation warnings]: deprecations.md#list-of-deprecated-apis

4446+

[dtls documentation]: dtls.md

44344447

[emit_warning]: process.md#processemitwarningwarning-options

44354448

[environment_variables]: #environment-variables_1

44364449

[filtering tests by name]: test.md#filtering-tests-by-name