Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.4k
Closed
Labels
http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.
Description
- Version: v10.8.0
- Platform: Windows 10 64bit
- Subsystem:
http2
Example:
consthttp2=require('http2')constsession=http2.connect(`https://google.com`);constsocket=session.socket;constreq=session.request({':path': '/',':method': 'GET'});req.on('close',()=>{session.close();setTimeout(()=>{socket['example'];},1000);});req.end();req.resume();internal/http2/core.js:678 const value = socket[prop]; ^ TypeError: Cannot read property 'example' of undefined at Object.get (internal/http2/core.js:678:29) at Timeout.setTimeout [as _onTimeout] (/home/szymon/Desktop/bug/example.js:9:9) at ontimeout (timers.js:427:11) at tryOnTimeout (timers.js:289:5) at listOnTimeout (timers.js:252:5) at Timer.processTimers (timers.js:212:10) ProxySocket assumes socket is available, but it's undefined after the session gets destroyed.
If this line was removed:
node/lib/internal/http2/core.js
Line 833 in 89f483b
| session[kSocket]=undefined; |
it'd work I think.
styfle
Metadata
Metadata
Assignees
Labels
http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.