When do server shutdown, the main thread would try to reap
the connections thread before the connections thread taking
the connections lock, which would cause a dead lock.
Using a synchronized thread to reap the exited connection
thread to avoid the potential dead lock.
When do server shutdown, the main thread would try to reap the connections thread before the connections thread taking the connections lock, which would cause a dead lock.
Using a synchronized thread to reap the exited connection thread to avoid the potential dead lock.
Fixes: #31
Signed-off-by: fupan.lfp fupan.lfp@antfin.com