{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/3534","labels_url":"https://api.github.com/repos/nodejs/node/issues/3534/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/3534/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/3534/events","html_url":"https://github.com/nodejs/node/pull/3534","id":113415430,"number":3534,"title":"zlib: only apply drain listener if given callback","user":{"login":"TheAlphaNerd","id":498775,"avatar_url":"https://avatars.githubusercontent.com/u/498775?v=3","gravatar_id":"","url":"https://api.github.com/users/TheAlphaNerd","html_url":"https://github.com/TheAlphaNerd","followers_url":"https://api.github.com/users/TheAlphaNerd/followers","following_url":"https://api.github.com/users/TheAlphaNerd/following{/other_user}","gists_url":"https://api.github.com/users/TheAlphaNerd/gists{/gist_id}","starred_url":"https://api.github.com/users/TheAlphaNerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheAlphaNerd/subscriptions","organizations_url":"https://api.github.com/users/TheAlphaNerd/orgs","repos_url":"https://api.github.com/users/TheAlphaNerd/repos","events_url":"https://api.github.com/users/TheAlphaNerd/events{/privacy}","received_events_url":"https://api.github.com/users/TheAlphaNerd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/lts-watch-v4.x","name":"lts-watch-v4.x","color":"eb6420"},{"url":"https://api.github.com/repos/nodejs/node/labels/zlib","name":"zlib","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-10-26T18:04:13Z","updated_at":"2015-11-13T22:52:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/3534","html_url":"https://github.com/nodejs/node/pull/3534","diff_url":"https://github.com/nodejs/node/pull/3534.diff","patch_url":"https://github.com/nodejs/node/pull/3534.patch"},"body":"When stream.flush() is called without a callback, an empty listener is\r\nbeing added. Since flush may be called multiple times to push SSE's\r\ndown to the client, multiple noop listeners are being added. This in\r\nturn causes the memory leak detected message.\r\n\r\nfixes #3529\r\n\r\nThis commit has been cherry picked from a pr on v0.x-archive\r\nhttps://github.com/nodejs/node-v0.x-archive/pull/25679"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/156581476","html_url":"https://github.com/nodejs/node/pull/3534#issuecomment-156581476","issue_url":"https://api.github.com/repos/nodejs/node/issues/3534","id":156581476,"user":{"login":"CraigCav","id":109814,"avatar_url":"https://avatars.githubusercontent.com/u/109814?v=3","gravatar_id":"","url":"https://api.github.com/users/CraigCav","html_url":"https://github.com/CraigCav","followers_url":"https://api.github.com/users/CraigCav/followers","following_url":"https://api.github.com/users/CraigCav/following{/other_user}","gists_url":"https://api.github.com/users/CraigCav/gists{/gist_id}","starred_url":"https://api.github.com/users/CraigCav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CraigCav/subscriptions","organizations_url":"https://api.github.com/users/CraigCav/orgs","repos_url":"https://api.github.com/users/CraigCav/repos","events_url":"https://api.github.com/users/CraigCav/events{/privacy}","received_events_url":"https://api.github.com/users/CraigCav/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T22:52:05Z","updated_at":"2015-11-13T22:52:05Z","body":"Also happy for this all to be squashed if desirable. Thanks to @TheAlphaNerd for picking this up."}}