fallintoplace opened a new pull request, #1023: URL: https://github.com/apache/tomcat/pull/1023
### What changed - Added a receiver start-up readiness hook to `ChannelReceiver`. - Made `ChannelCoordinator` wait for receiver readiness before reading or mutating the local member. - Signalled readiness from `NioReceiver` after the listener thread has entered listen mode and registered UDP reads when configured. - Added a regression test for the coordinator start-up ordering. ### Why `ChannelCoordinator` starts the data receiver before copying receiver host/port details into the local member. For asynchronous receivers, `start()` can return before the receiver thread has finished its own start-up, leaving a small window where local-member state can be read or mutated too early. ### Testing - `PATH=/opt/homebrew/opt/ant/bin:/opt/homebrew/Cellar/openjdk@17/17.0.19/bin:$PATH ant -Dtest.entry=org.apache.catalina.tribes.group.TestGroupChannelStartStop test` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
