-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reintroduces the ngtcp2 and nghttp3 dependencies, building those by default if the vendored-in openssl (with QUIC support) is used or the shared openssl defines `OPENSSL_INFO_QUIC`. Upates the version metadata to reflect whether ngtcp2 and nghttp3 are present. ngtcp2 as of ngtcp2/ngtcp2@2381f7f nghttp3 as of ngtcp2/nghttp3@66ad30f Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #37682 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
- Loading branch information
Showing
134 changed files
with
61,505 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.in | ||
*.am | ||
*.txt | ||
*.pc | ||
Makefile | ||
*gnutls* | ||
ngtcp2/**/.gitignore | ||
ngtcp2/**/.deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2019 nghttp3 contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2016 ngtcp2 contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# ngtcp2 and nghttp3 | ||
|
||
The ngtcp2 and nghttp3 dependencies provide the core functionality for | ||
QUIC and HTTP/3. | ||
|
||
The sources are pulled from: | ||
|
||
* ngtcp2: https://github.com/ngtcp2/ngtcp2 | ||
* nghttp3: https://github.com/ngtcp2/nghttp3 | ||
|
||
In both the `ngtcp2` and `nghttp3` git repos, the active development occurs | ||
in the default branch (currently named `master` in each). | ||
|
||
We only use a subset of the sources for each. | ||
|
||
## Updating | ||
|
||
The `nghttp3` library depends on `ngtcp2`. Both should always be updated | ||
together. From `ngtcp2` we only want the contents of the `lib` and `crypto` | ||
directories; from `nghttp3` we only want the contents o the `lib`. | ||
|
||
### Updating ngtcp2 | ||
|
||
To update ngtcp2: | ||
|
||
```sh | ||
$ git clone https://github.com/ngtcp2/ngtcp2 | ||
$ cd ngtcp2 | ||
$ autoreconf -i | ||
$ ./configure --prefix=$PWD/build --enable-lib-only | ||
$ cp -R lib/* ../node/deps/ngtcp2/ngtcp2/lib/ | ||
$ cp -R crypto/* ../node/deps/ngtcp2/ngtcp2/crypto/ | ||
``` | ||
|
||
### Updating nghttp3 | ||
|
||
To update ngtcp2: | ||
|
||
```sh | ||
$ git clone https://github.com/ngtcp2/nghttp3 | ||
$ cd nghttp3 | ||
$ autoreconf -i | ||
$ ./configure --prefix=$PWD/build --enable-lib-only | ||
$ cp -R lib/* ../node/deps/ngtcp2/nghttp3/lib/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* Edited to match src/node.h. */ | ||
#include <stdint.h> | ||
|
||
#ifdef _WIN32 | ||
#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED) | ||
typedef intptr_t ssize_t; | ||
# define _SSIZE_T_ | ||
# define _SSIZE_T_DEFINED | ||
#endif | ||
#else // !_WIN32 | ||
# include <sys/types.h> // size_t, ssize_t | ||
#endif // _WIN32 | ||
|
||
#ifdef _MSC_VER | ||
# include <intrin.h> | ||
# define __builtin_popcount __popcnt | ||
#endif | ||
|
||
/* Define to 1 to enable debug output. */ | ||
/* #undef DEBUGBUILD */ | ||
|
||
/* Define to 1 if you have the <arpa/inet.h> header file. */ | ||
/* #undef HAVE_ARPA_INET_H */ | ||
|
||
/* Define to 1 if you have the <stddef.h> header file. */ | ||
#define HAVE_STDDEF_H 1 | ||
|
||
/* Define to 1 if you have the <stdint.h> header file. */ | ||
#define HAVE_STDINT_H 1 | ||
|
||
/* Define to 1 if you have the <stdlib.h> header file. */ | ||
#define HAVE_STDLIB_H 1 | ||
|
||
/* Define to 1 if you have the <string.h> header file. */ | ||
#define HAVE_STRING_H 1 | ||
|
||
/* Define to 1 if you have the <unistd.h> header file. */ | ||
/* #undef HAVE_UNISTD_H */ |
Oops, something went wrong.