ppkarwasz opened a new pull request, #93:
URL: https://github.com/apache/mina/pull/93

   `SslEnd2EndTest` (added in #77) takes about 11 minutes on Ubuntu runners but 
only about 9 seconds on Windows and macOS. In the [latest 2.2.X 
run](https://github.com/apache/mina/actions/runs/42196940322) it accounts for 
663 s of the 866 s spent in tests on Ubuntu, which pushes the Ubuntu jobs close 
to 15 minutes.
   
   ## Cause
   
   The test performs 2 × 4096 small echo round trips, and neither socket 
enables `TCP_NODELAY`. Nagle's algorithm then interacts with delayed ACKs (up 
to 40 ms on Linux), adding about 80 ms per round trip. Stack dumps show the 
main thread idle, waiting for the echo, not burning CPU.
   
   ## Fix
   
   Enable `TCP_NODELAY` on both the acceptor and the connector sessions in the 
test. Locally on Linux the class now runs in about 4 s instead of about 11 
minutes.
   
   This also unblocks the 15 minute job cap proposed in #58.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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

Reply via email to