bneradt opened a new pull request #6888:
URL: https://github.com/apache/trafficserver/pull/6888


   This is an attempt to address AuTest port selection issues. This:
   
   - Checks whether the port being delivered via the port queue is still 
available. If not, the next port in the queue checked. This repeats until an 
available port is found.
   - Changes the port from a LIFO to a FIFO. As a LIFO, the port that was used 
in a previous test and just released would be attempted to be used again in the 
very next test. It could be that the port is still in a WAIT state. I'm 
wondering whether this caused the address in use issues. Changing to a FIFO 
should address this.
   - Adds debug and verbose logging so we can get a view into the logic being 
used. There's two methods of port selection, one that is preferred and a 
fallback method using a bound socket with SO_REUSEADDR. If we are still having 
issues after this change, I suggest we turn on verbose logging in our CI which 
would reveal which method is used. Note that verbose logging shouldn't be 
nearly as noisy as debug logging.
   
   This PR is made to address a couple AuTest issues:
   
   - https://github.com/apache/trafficserver/issues/6840
   - https://github.com/apache/trafficserver/issues/6842


----------------------------------------------------------------
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:
[email protected]


Reply via email to