coolkaito opened a new pull request, #453:
URL: https://github.com/apache/qpid-broker-j/pull/453

   **JIRA Issue**
   [QPID-8772](https://issues.apache.org/jira/browse/QPID-8772): [Broker-J] 
Excessive CPU usage from continuous rescheduling of blocked TCP/TLS writes
   
   **PR Description**
   The proposed change updates scheduling to:
   
   - Wait for socket write readiness when output is blocked, instead of 
immediately rescheduling solely because output remains pending.
   - Wait for peer input when TLS requires an unwrap operation, after buffered 
handshake output has been flushed.
   - Clear the partial-read indication at the start of each processing pass.
   - Keep consumers marked as transport-blocked until pending output drains.
   - Resume suspended protocol work when writes can progress, including when 
output drains within the same processing pass.
   
   The expected result is lower CPU consumption under write backpressure and 
improved availability of I/O workers for other connections.


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