Skip to content

Deleted proxy ports are not reused #381

@axtens

Description

@axtens

Context: Windows 10, Azure, C#, browsermob-proxy-2.1.0-beta-4

Suppose GET /proxy returns

{proxyList:[{port:8081}]}

We delete the 8081 proxy with

DELETE /proxy/8081

Such that GET /proxy returns

{proxyList:[]}

We then create a new proxy with

POST /proxy

which we confirm with a GET /proxy that returns

{proxyList:[{port:8082}]}

If I try to create a proxy numbered the same as a recently deleted one (with, say, POST /proxy and a body of "port=8081"), I get

{"port":8083}

(or whatever the next port will be by incrementing the port number of the most recently defined one was)

Here's the question: Having deleted 8081, why is the new proxy 8082? If I run a lot of different jobs through the BMP proxy, I'm going to ... eventually .. run out of proxy ports. Is there a way of reusing ports, or must I handle an ever increasing port number value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions