Description
PassivePorts.reserveNextPort() is not synchronized, nor is there a synchronized block inside it. Both it and releasePort(int) should probably be synchronized on either this or a common sync object to ensure there is no race condition.
PassivePorts.reserveNextPort() is not synchronized, nor is there a synchronized block inside it. Both it and releasePort(int) should probably be synchronized on either this or a common sync object to ensure there is no race condition.