joyent/node — pull request #3181 by vvo (2012-04-26 23:55:58+00:00)
Title: Fixes #3179 http.js leak while using http.get/request

Made a small changes that could means big change for anyone using http.get/request (like @mikeal request)

We were previously using self.on('response') on ClientRequest, meaning that any ClientRequest would stay in memory even when response is emitted.

So I changed that with .once since we should not get more than one reponse for a particular ClientRequest right ?

I hope I'm not mistaking. Tell me.

In #3179 I have attached a test file and some insights on memory usage from various node versions.