Skip to content
This repository was archived by the owner on Jun 12, 2022. It is now read-only.
This repository was archived by the owner on Jun 12, 2022. It is now read-only.

proxy keeps node process alive #29

@zkat

Description

@zkat

There's an issue, probably with the proxy libraries make-fetch-happen is using, where the node process is kept alive if you use m-f-h's proxying agent features. This is likely because some socket somewhere isn't closing, or the libraries are doing some keepalive thing without any timeouts.

To set up a local SOCKS proxy to test with:

  1. enable SSH (in OSX, System Preferences -> Sharing -> Remote login)
  2. ssh -vND 8888 "$USER@localhost"

To set up a local http(s) proxy to test with:

  1. install a reverse proxy, such as Squid
  2. Configure and run the proxy locally

You can use PROXY={socks,http}://localhost:8888 node to have make-fetch-happen pick it up. You should be able to hit any http or https service with m-f-h after that.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions