Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.questionIssues that look for answers.Issues that look for answers.
Description
When creating a simple HTTPserver and connecting to it one looses the handle context. Meaning there is no way to know what handle or callback created the new handle.
'use strict';consthttp=require('http');constserver=http.createServer(function(req,res){res.end('hallo world');});server.listen(0,'localhost',function(){constaddr=server.address();constreq=http.get(`http://${addr.address}:${addr.port}`,function(res){res.resume();res.once('end',server.close.bind(server));});});Note that this issues exists even after applying #3216 (adds parent to init hook)
complete test case: https://gist.github.com/AndreasMadsen/f56bbdbcd18a2c6358f3
dprof dump:http://bl.ocks.org/AndreasMadsen/raw/6c460eb0e7d6eeadb31a/
/cc @trevnorris
Metadata
Metadata
Assignees
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.questionIssues that look for answers.Issues that look for answers.
