{"issue":{"milestone":null,"title":"Why one connection per request?","created_at":"2011-12-26T23:22:42Z","user":{"login":"thejh","id":499370,"url":"https://api.github.com/users/thejh","avatar_url":"https://secure.gravatar.com/avatar/0344ba69a08f60545d3c1b27b515818c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0344ba69a08f60545d3c1b27b515818c"},"updated_at":"2011-12-30T19:12:33Z","state":"open","labels":[],"id":2660407,"closed_at":null,"html_url":"https://github.com/mikeal/request/issues/142","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"I've looked at the network traffic of a nodejs program I'm currently working on, and it immediately closes couchdb HTTP connections after getting the response (although it sends a `Connection: keep-alive` header, which IMO doesn't fit together with that). Is there a way to turn on connection pooling or so? I think I didn't change any of the related settings.\r\n\r\n```\r\n[jann@Jann-PC node-forum master]$ node -v\r\nv0.6.6\r\n[jann@Jann-PC node-forum master]$ npm ls\r\nforum@0.1.0 /home/jann/gitty/node-forum\r\n├─┬ couchapp@0.9.0 \r\n│ ├── request@2.2.9 \r\n│ └── watch@0.5.0 \r\n├── hat@0.0.3 \r\n├── marked@0.1.4 \r\n├── password-hash@1.1.3 \r\n├─┬ ram-static@0.1.0 \r\n│ ├── hat@0.0.3 \r\n│ └── mime@1.2.4 \r\n├─┬ relax@0.1.1 \r\n│ └── request@2.2.9 \r\n└── vacuum@0.1.1 -> /home/jann/gitty/node-vacuum\r\n```","number":142,"url":"https://api.github.com/repos/mikeal/request/issues/142","comments":31,"assignee":null},"comment":{"created_at":"2011-12-30T19:12:33Z","user":{"login":"mikeal","id":579,"url":"https://api.github.com/users/mikeal","avatar_url":"https://secure.gravatar.com/avatar/d8eba8dd0e89a0580ec4157681121a79?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d8eba8dd0e89a0580ec4157681121a79"},"updated_at":"2011-12-30T19:12:33Z","id":3316112,"body":"let's do this.\r\n\r\ncreate a file, forever.js, in the request tree. util.inherits http.Agent and override the methods you've changed.\r\n\r\nthen just add a feature to request for a flag that uses this new agent.","url":"https://api.github.com/repos/mikeal/request/issues/comments/3316112"},"action":"created"}