forked from webmetrics/browsermob-proxy
-
Notifications
You must be signed in to change notification settings - Fork 668
Open
Labels
Description
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?