demery-pivotal opened a new pull request #5439:
URL: https://github.com/apache/geode/pull/5439


   Do not enable `SO_REUSEADDR` when binding a socket to an ephemeral port.
   
   On some operating systems, enabling `SO_REUSEADDR` when binding to an 
ephemeral port allows the system to chose a port in `TIME_WAIT` state. The 
version of Linux used in our CI is one such operating system.
   
   This causes two problems:
   
   1. The system can bind to a port that is still waiting for data from a 
previous connection, including connections that have nothing to do with Geode.
   2. Much of our test code, and some of our production code, deliberately puts 
ports into `TIME_WAIT` state in order to "reserve" them for later use. If 
`SO_REUSEADDR` is set when binding a socket to an ephemeral port, the system 
may bind to a port that other code has reserved for some other purpose.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to