socket reconnection thread is not started
Bug #785134 reported by
Peter Soetens
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
log4cxx (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
There is a tiny bug in the reconnection logic of socketappender such that the thread that needs to do the reconnection is never started.
I have created a trivial patch that fixes this. Tested on maverick, will have same effect on all other releases too.
Related branches
tags: | added: patch |
To post a comment you must log in.
The bug seemed more involved than at first sight. The proposed patch only fixes the case where the thread is run once by the socket appender, but any next attempts because the connection was dropped *again* will still not happen.
A second patch that replaces the first one fixes all attempts of reconnection.
I also ran the unit tests to be sure it didn't break anything. All went fine.