{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/5267","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/5267/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/5267/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/5267/events","html_url":"https://github.com/nodejs/node/issues/5267","id":134139332,"number":5267,"title":"timers and domains","user":{"login":"ORESoftware","id":11139560,"avatar_url":"https://avatars.githubusercontent.com/u/11139560?v=3","gravatar_id":"","url":"https://api.github.com/users/ORESoftware","html_url":"https://github.com/ORESoftware","followers_url":"https://api.github.com/users/ORESoftware/followers","following_url":"https://api.github.com/users/ORESoftware/following{/other_user}","gists_url":"https://api.github.com/users/ORESoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/ORESoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ORESoftware/subscriptions","organizations_url":"https://api.github.com/users/ORESoftware/orgs","repos_url":"https://api.github.com/users/ORESoftware/repos","events_url":"https://api.github.com/users/ORESoftware/events{/privacy}","received_events_url":"https://api.github.com/users/ORESoftware/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/domain","name":"domain","color":"e11d21"},{"url":"https://api.github.com/repos/nodejs/node/labels/timers","name":"timers","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-17T00:40:50Z","updated_at":"2016-04-04T23:20:16Z","closed_at":"2016-04-04T22:59:22Z","body":"I am seeing some behavior that I can't currently explain - I went through my code with node-debug and ended up in timers.js (node core) and \r\n\r\nsome where in timers.js near line 94, the current domain gets exited\r\n\r\nhttps://github.com/nodejs/node/blob/master/lib/timers.js\r\n\r\nI am using setTimeout, and the domain I am currently in gets exited by some timer that I am probably also inside.\r\n\r\nIt looks like there is some conflict of interest between timers ( setTimeout ?) and domains, whereby when the timer is done, it exits the current domain or something?\r\n\r\nI can't tell what the code is doing, but in any case, it appears as though the current domain I am in gets exited before I want it to be exited. Does this make any sense? How can I mitigate the problem beyond just wrapping domains within domains?\r\n\r\nIn general domains are very useful.\r\n\r\nthanks!"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/205538381","html_url":"https://github.com/nodejs/node/issues/5267#issuecomment-205538381","issue_url":"https://api.github.com/repos/nodejs/node/issues/5267","id":205538381,"user":{"login":"ORESoftware","id":11139560,"avatar_url":"https://avatars.githubusercontent.com/u/11139560?v=3","gravatar_id":"","url":"https://api.github.com/users/ORESoftware","html_url":"https://github.com/ORESoftware","followers_url":"https://api.github.com/users/ORESoftware/followers","following_url":"https://api.github.com/users/ORESoftware/following{/other_user}","gists_url":"https://api.github.com/users/ORESoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/ORESoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ORESoftware/subscriptions","organizations_url":"https://api.github.com/users/ORESoftware/orgs","repos_url":"https://api.github.com/users/ORESoftware/repos","events_url":"https://api.github.com/users/ORESoftware/events{/privacy}","received_events_url":"https://api.github.com/users/ORESoftware/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T23:20:16Z","updated_at":"2016-04-04T23:20:16Z","body":"will do thanks"}}