gnodet opened a new pull request, #22095:
URL: https://github.com/apache/camel/pull/22095

   ## Summary
   
   - Fix flaky AS2 tests that intermittently fail with `BindException: Address 
already in use` on CI
   - Root cause: `new ServerSocket(port)` doesn't set `SO_REUSEADDR`, so if a 
port is in `TIME_WAIT` state from a previous test, binding fails
   - Fix: create unbound `ServerSocket`, set `SO_REUSEADDR` to `true`, then 
bind — in both `AS2ServerConnection` and `AS2AsyncMDNServerConnection`
   
   ## Test plan
   
   - [x] `mvn test -B -pl components/camel-as2/camel-as2-api`
   - [x] Verified the socket options are correctly applied
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
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]

Reply via email to