Hi Gester, I had an idea for another approach which keeps the simplicity of @smgoller's original fix but addresses the hanging during the 2 minute retry in AcceptorImpl. We can simply just bypass the 2 minute retry logic if the CacheServerImpl is a GatewayReceiverImpl. There is already a flag for this passed into the AcceptorImpl constructor. Check out my branch:
https://github.com/mcmellawatt/geode/tree/feature/GEODE-5591 It is possible that if say 20 gateway receivers are being created at the same time that we will get 19 IOExceptions (they are all fighting for the same port), but they will fail fast and move onto the next port in the range. I don't think this would impact the user experience at all, just something to keep in mind. [ Full content available at: https://github.com/apache/geode/pull/2425 ] This message was relayed via gitbox.apache.org for [email protected]
