sahvx655-wq opened a new pull request, #707:
URL: https://github.com/apache/logging-log4cxx/pull/707

   Fixes an application hang during SocketAppender shutdown when the 
destination log server is offline.
   ThreadUtility::priv_data::doPeriodicTasks() executed periodic task callbacks 
while holding job_mutex. If a reconnect attempt blocked on network I/O, the 
mutex remained held, preventing removePeriodicTask() and shutdown-related 
operations from acquiring the lock and causing shutdown to stall.
   This change executes task callbacks outside of job_mutex, eliminating lock 
contention between long-running callbacks and task removal/shutdown paths.
   Added testNoDeadlockDuringTaskExecution to verify that removePeriodicTask() 
completes successfully while a slow periodic task is still executing.


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