This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
quic: ensure callbacks of QuicSocket.connect() get called #198
Open
oyyd
wants to merge
119
commits into
nodejs:master
Choose a base branch
from
oyyd:connect-ready
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Referring to `BaseObject` instances using standard C++ smart pointers can interfere with BaseObject’s own cleanup mechanisms (explicit delete, delete-on-GC and delete-on-cleanup). Introducing custom smart pointers allows referring to `BaseObject`s safely while keeping those mechanisms intact. PR-URL: nodejs#141 Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#141 Reviewed-By: James M Snell <[email protected]>
Co-authored-by: Anna Henningsen <[email protected]> Co-authored-by: Daniel Bevenius <[email protected]> Co-authored-by: gengjiawen <[email protected]> Co-authored-by: James M Snell <[email protected]> Co-authored-by: Lucas Pardue <[email protected]> Co-authored-by: oyyd <[email protected]
The extensive testing done on http2 makes it easier to make sure the implementation is correct (and doesn’t diverge unnecessarily). PR-URL: nodejs#126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Ported from tatsuhiro-t/openssl@920a331 PR-URL: nodejs#6 Reviewed-By: Daniel Bevenius <[email protected]>
Ported from tatsuhiro-t/openssl@920a331 PR-URL: nodejs#6 Reviewed-By: Daniel Bevenius <[email protected]>
PR-URL: nodejs#145 Reviewed-By: James M Snell <[email protected]>
Fixes: nodejs#59 PR-URL: nodejs#145 Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#147 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
This fixes a crash in test/sequential/test-performance-eventloopdelay.js. This should be squashed into > src: introduce custom smart pointers for `BaseObject`s PR-URL: nodejs#149 Reviewed-By: James M Snell <[email protected]>
Introduced in aa99a6a. PR-URL: nodejs#149 Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#149 Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#154 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
PR-URL: nodejs#153 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
PR-URL: nodejs#152 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
Previously, if the expiry timestamp was in the future by less than 1ms, the retransmission timer would not have been scheduled. (This also removes an unused line from the test that this problem made flaky.) PR-URL: nodejs#157 Reviewed-By: James M Snell <[email protected]>
If we set `preferredAddressPolicy` to `accept` on `QuicClientSession` but receives an invalid preferred address, e.g. we don't define `preferredAddress` on the server, the `QuicClientSession` should still work. Before this PR, the included test will cause segmetation fault. PR-URL: nodejs#155 Reviewed-By: James M Snell <[email protected]>
It would be better to add a test to ensure that the timeout is greater than the triple PTO if we can get the PTO. PR-URL: nodejs#160 Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#159 Reviewed-By: James M Snell <[email protected]>
Update this code to be more in line with the Windows version. Previously, callers (such as nodejs) might assume it was always safe to de-reference this parameter: https://github.com/nodejs/node/blob/d2634be56258e2b957c1061c5f4d86792975bfa9/src/tcp_wrap.cc#L349 called from https://github.com/nodejs/node/blob/d2634be56258e2b957c1061c5f4d86792975bfa9/src/udp_wrap.cc#L567 I suspect this may have been unreachable, and that it was guaranteed by the kernel to be `>= sizeof(struct sockaddr)`, so this should be a NFC simplification. PR-URL: libuv/libuv#2330 Reviewed-By: Saúl Ibarra Corretgé <[email protected]>
FreeBSD defines `sin_len` and `sin6_len` inside `sockaddr_in` and `sockaddr_in6`. `sockaddr`s come from `getsockname` and `uv_ip4_addr` will differ in the first byte if libuv doesn't set `sin_len` correctly. PR-URL: libuv/libuv#2492 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Saúl Ibarra Corretgé <[email protected]>
This reverts commit 170c5d0. PR-URL: nodejs#138 Reviewed-By: Anna Henningsen <[email protected]>
This reverts commit ecda77c. PR-URL: nodejs#138 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#138 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#138 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#138 Reviewed-By: Anna Henningsen <[email protected]>
This commit will need to be submitted upstream then backed out once it lands and we can update PR-URL: nodejs#138 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#138 Reviewed-By: Anna Henningsen <[email protected]>
The recent commits have broken the build, tests, and linting. One cctest is not fixed but rather disabled here. PR-URL: nodejs#162
After ngtcp2 being updated, `ngtcp2_conn_get_idle_timeout` is renamed as `ngtcp2_conn_get_idle_expiry` which returns `ngtcp2_tstamp` instead of `ngtcp2_duration`. Refs: https://github.com/ngtcp2/ngtcp2/blob/6f40668cdce7db7c043d3a80c07f379841d8c51e/lib/ngtcp2_conn.c#L8604 PR-URL: nodejs#166 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#213 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#216 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#216 Reviewed-By: Anna Henningsen <[email protected]>
Generate stateless reset token cryptographically Fixes: nodejs#62 PR-URL: nodejs#215 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#217 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#217 Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#217 Reviewed-By: Anna Henningsen <[email protected]>
Currently the doc target fails and this commit attempts for fix these errors. PR-URL: nodejs#221 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
oyyd
force-pushed
the
connect-ready
branch
2 times, most recently
from
December 9, 2019 07:45
21377c1
to
be8cf91
Compare
1. The callbacks of QuicSocket.connect() won't get called after QuicSocket binding. To fix this issue, This PR calls QuicSession[kReady]() directly when QuicSocket bound. 2. This PR also modify SocketAddress::Hash and SocketAddress::Compare to accept struct values instead of pointers because SocketAddress might get freed firstly which would cause the values aren't safe to use. For example, the test added in this PR is likely to abort before this PR.
oyyd
changed the title
WIP quic: ensure callbacks of QuicSocket.connect() get called
quic: ensure callbacks of QuicSocket.connect() get called
Dec 9, 2019
Heads up, this will need to be rebased |
jasnell
force-pushed
the
master
branch
3 times, most recently
from
February 13, 2020 19:39
76d2afc
to
b69367d
Compare
jasnell
force-pushed
the
master
branch
4 times, most recently
from
March 17, 2020 16:23
928c50e
to
08796cc
Compare
jasnell
force-pushed
the
master
branch
2 times, most recently
from
March 24, 2020 01:14
78e9941
to
cee2e5d
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The callbacks of
QuicSocket.connect()
won't get called afterQuicSocket
binding. This PR callsQuicSession[kReady]()
directlywhen
QuicSocket
bound to fix this issue.This PR also modify
SocketAddress::Hash
andSocketAddress::Compare
to accept values instead of pointers because
SocketAddress
mightget freed firstly which would cause that the values aren't safe.
For example, the test added is likely to abort before this PR.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes