postgrespro/testgres

desiredRange for PortManager::reserve_port

Closed this issue · 1 comments

Client can ask PortManager::reserve_port to allocate in desired (specific) range to test or avoid some specific cases.

For example, some servers can work only with ports less than 32768.

I offer to append the new argument 'desiredRange' to PortManager::reserve_port to provide this feature:

PortManager::reserve_port(desiredRange: range = None)

This idea is good but testgres does not require it for its work.

Our internal systems where this feature is required use own solution to this problem.