-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the version 1.0.22 do not search from the basePort #84
Comments
It does, but instead of starting at |
Hi, this seems to be is a breaking change then. Previously, the expected behavior was that the
|
The change made does not solve the problem, since multiple calls of I recommend reverting this change or making it optional. The caller will then be responsible for port reservation. |
I recently configured webpack and was really frustrated with that behaviour. As for me, I would like to have my app on a certain port most of the time, and if it is busy, then choose next port in a sequential order. It is easy to remember and convenient behaviour. |
This absolutely makes no sense. 1/ There's no bug in the first place. If an application "call[s] And seriously, releasing a breaking change like that as a "patch"... |
It's not about waiting for the port to return - it's that whatever is binding to the returned port (e.g. a server) can take some time to bind even after the port is returned.
That's correct. It means any application that is binding and releasing a large number of ports dynamically can rely on a simple error handler in the downstream logic (i.e. if the attempt to bind encounters an EADDRINUSE, retry) which will be invoked roughly once every 32,000 calls rather than having to block on each binding attempt until successful binding is verified. It seems like a lot of consumers are relying on the sequential scan though, and there is a PR out that reverts to making that the default behavior: #86 |
I use Vue Cli, and this completely broke devServer.port in vue.config.js. I ended up reverting to 1.0.21 of portfinder for now. |
Very bad |
Use -p 8080 as workaround for random port given by portfinder. See: http-party/node-portfinder#84
Also vuejs/vue-cli#4452 |
This has created bugs in my application too - I'm specifically depending on finding the first available port in the range, not a random port. |
v1.0.22 of portfinder changes to random selection, not sequential, which makes the selected port change unnecessarily & unpredictably. See http-party/node-portfinder#84
I will roll back immediately |
Reverted v1.0.22 - v1.0.23 is the same as v1.0.21 now |
… options (#529) * buildConfigObject: support all config options * Use lodash merge * - portfinder 1.0.22 has a bug http-party/node-portfinder#84
… options (#529) * buildConfigObject: support all config options * Use lodash merge * - portfinder 1.0.22 has a bug http-party/node-portfinder#84
… options (#529) * buildConfigObject: support all config options * Use lodash merge * - portfinder 1.0.22 has a bug http-party/node-portfinder#84
… options (#529) * buildConfigObject: support all config options * Use lodash merge * - portfinder 1.0.22 has a bug http-party/node-portfinder#84
… options (#529) * buildConfigObject: support all config options * Use lodash merge * - portfinder 1.0.22 has a bug http-party/node-portfinder#84
… options (#529) * buildConfigObject: support all config options * Use lodash merge * - portfinder 1.0.22 has a bug http-party/node-portfinder#84
… options (#529) * buildConfigObject: support all config options * Use lodash merge * - portfinder 1.0.22 has a bug http-party/node-portfinder#84
… options (#529) * buildConfigObject: support all config options * Use lodash merge * - portfinder 1.0.22 has a bug http-party/node-portfinder#84
the version 1.0.22 do not search from the basePort
The text was updated successfully, but these errors were encountered: