{"action":"opened","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/3241","labels_url":"https://api.github.com/repos/nodejs/node/issues/3241/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/3241/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/3241/events","html_url":"https://github.com/nodejs/node/issues/3241","id":110286379,"number":3241,"title":"AsyncWrap: HTTP has no handle context","user":{"login":"AndreasMadsen","id":505333,"avatar_url":"https://avatars.githubusercontent.com/u/505333?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasMadsen","html_url":"https://github.com/AndreasMadsen","followers_url":"https://api.github.com/users/AndreasMadsen/followers","following_url":"https://api.github.com/users/AndreasMadsen/following{/other_user}","gists_url":"https://api.github.com/users/AndreasMadsen/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasMadsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasMadsen/subscriptions","organizations_url":"https://api.github.com/users/AndreasMadsen/orgs","repos_url":"https://api.github.com/users/AndreasMadsen/repos","events_url":"https://api.github.com/users/AndreasMadsen/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasMadsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-07T18:22:09Z","updated_at":"2015-10-07T18:22:09Z","closed_at":null,"body":"When creating a simple HTTPserver and connecting to it one losses the handle context. Meaning there is  no way to know what handle or callback created the new handle.\r\n\r\n```javascript\r\n'use strict';\r\nconst http = require('http');\r\nconst server = http.createServer(function (req, res) {\r\n  res.end('hallo world');\r\n});\r\n\r\nserver.listen(0, 'localhost', function () {\r\n  const addr = server.address();\r\n  const req = http.get(`http://${addr.address}:${addr.port}`, function (res) {\r\n    res.resume();\r\n    res.once('end', server.close.bind(server));\r\n  });\r\n});\r\n```\r\n\r\n**complete test case**: https://gist.github.com/AndreasMadsen/f56bbdbcd18a2c6358f3\r\n**dprof dump:** http://bl.ocks.org/AndreasMadsen/raw/6c460eb0e7d6eeadb31a/\r\n\r\n![skaermbillede 2015-10-07 kl 20 21 09](https://cloud.githubusercontent.com/assets/505333/10346732/f8eeda40-6d30-11e5-8cfe-a37b60a16dad.png)\r\n\r\n/cc @trevnorris "}}