GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — quic: fix abort on handshake failure in connect() by christianaurichzm · Pull Request #67617 · nodejs/node Conversation
Member
$ node --experimental-quic -e "require('node:quic').connect('127.0.0.1:1', { alpn: 'x', ciphers: '' })" # node[1043888]: void node::quic::Session::EmitClose(const node::quic::QuicError&) at ../src/quic/session.cc:4057 # Assertion failed: is_destroyed()
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsEndpoint::Connect() marked the session as wrapped before sending the first flight, while JavaScript had no QuicSession for it yet. If the session closed during that send, for example with ciphers: '', nothing called destroy() and the CHECK in Session::EmitClose() aborted the process. Send the first flight before marking the session as wrapped, so connect() rejects with ERR_QUIC_CONNECTION_FAILED instead. Signed-off-by: Christian Aurich Zanettini Martins <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67617 +/- ## ========================================== - Coverage 90.72% 90.71% -0.02% ========================================== Files 801 801 Lines 280809 280809 Branches 54212 54211 -1 ========================================== - Hits 254776 254745 -31 - Misses 16209 16248 +39 + Partials 9824 9816 -8 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 237d192 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Endpoint::Connect() marked the session as wrapped before sending the first flight, while JavaScript had no QuicSession for it yet. If the session closed during that send, for example with ciphers: '', nothing called destroy() and the CHECK in Session::EmitClose() aborted the process. Send the first flight before marking the session as wrapped, so connect() rejects with ERR_QUIC_CONNECTION_FAILED instead. Signed-off-by: Christian Aurich Zanettini Martins <[email protected]> PR-URL: #67617 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tim Perry <[email protected]>
Endpoint::Connect() marked the session as wrapped before sending the first flight, while JavaScript had no QuicSession for it yet. If the session closed during that send, for example with ciphers: '', nothing called destroy() and the CHECK in Session::EmitClose() aborted the process. Send the first flight before marking the session as wrapped, so connect() rejects with ERR_QUIC_CONNECTION_FAILED instead. Signed-off-by: Christian Aurich Zanettini Martins <[email protected]> PR-URL: nodejs#67617 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tim Perry <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.