Skip to content

Very slow request #7

Open
Open
@ptorrent

Description

@ptorrent

Hello,

I was facing an issue on node 20 with the proxy. Very slow proxy. I found the solution here:

I changed this in common.js setupOutgoing :

  //REMOVE THIS LINE outgoing.agent = options.agent || false;
  //AND REPLACE WITH:
  if(options.agent){
	outgoing.agent = options.agent 
  }

Regarding the doc, setting the agent to false seems to create a new one each time...

Image

I'm not a HTTP agent expert, but does it make sense to create a new one each time ?

After that change, proxy are really really fast... 10x time faster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions