I had that issue on Jessie and I went with packaging 0.4.3.
I would like to first thanks Gerald Turner for the investigation. He
mentioned the NodeJS API has changed and also pointed out to an upstream
The API change is fixed by:
agent.addRequest parameters have changed
Fix various bugs with connection pool handling
Both changes are included in 0.4.3 which also add:
set the defaultPort to 443 for https agents
I remember that one has been hitting me when I tried to setup a https proxy.
The other changes with 0.3.1 are related to package.json or .jshintrc so
hardly have any impact.
So seems the easiest way is to just upgrade to 0.4.3 and I have
confirmed it fix the issue.
If one wants to upgrade further:
* 0.5.x brings a new dependency "safe-buffer" which would need to be
I have forked collab-maint/node-tunnel-agent on Wikimedia Gerrit repo
and did the patches there:
You can also find them on the Github mirror:
For reference, Wikimedia bug is:
Antoine "hashar" Musso