Recover from DiaSASL backends that go down-then-up
The intention of this merge request is to improve stability and getting back up after a reset of the DiaSASL backend.
When the connection resets, the master thread ends and a new socket is needed.
The idea is to keep diasasl_node
but set its ->socket
to a negative value.
The next client that comes knocking discovers this situation and tries to open
a new connection to the DiaSASL backend.
The code compiles, but I haven't tested it yet (not an emergency for our demo).
If you think it makes sense we can test it in a web0
instance to see it live.
Please inspect carefully, I am not nearly as skilled in Apache/APR as you are!