coherence-community / oracle-bedrock

Oracle Bedrock
Other
55 stars 31 forks source link

Change SocketBasedRemoteExecutor to use LocalPlatform AvailablePortIterator #254

Open brianoliver opened 9 years ago

brianoliver commented 9 years ago

While we correctly use ephemeral ports to create ServerSockets for the SocketBasedRemoteExecutor, there's a possibility that ports provided by the AvailablePortIterator may accidentally be taken by the SocketBasedRemoteExecutor prior to an application starting, especially when the AvailablePortIterator port range overlaps with the operating system ephemeral port range.

The simple solution is to use the AvailablePortIterator (and keep trying) when creating a SocketBasedRemoteExecutor.

brianoliver commented 8 years ago

This issue was imported from JIRA ORACLETOOLS-254

brianoliver commented 9 years ago

Reported by @brianoliver