treasure-data / serverengine

A framework to implement robust multiprocess servers like Unicorn
Apache License 2.0
759 stars 86 forks source link

Consider excluded port ranges for Windows #142

Closed daipom closed 1 year ago

daipom commented 1 year ago

Some applications such as Hyper-V or Docker use excluded port ranges so that other applications can't use those ports. We need to exclude those ports for choosing the port number.

However, it needs to be discussed whether it is really necessary to look for the available port number in this way, or whether it could be fixed more fundamentally.

Anyway, I made a quick fix, so make this PR for now.

ashie commented 1 year ago

Although the original issue described in #140 can be resolved by #143, I also merge. It might be convenience for searching available ports as we are doing in Fluentd's tests.

ashie commented 1 year ago

Thanks!

daipom commented 1 year ago

Thanks for your review!