What did you observe here, and do you have some logs that demonstrate the problem? I tested the reconnect logic, and it all appeared to work, so maybe something else is going on here. The code below blocks the network processing.
The event should also be a simple word, so the callback can switch on it. In this case, it can call logging.exception() so we can see what was caught. Bare "except:" clauses are always dangerous since it could paper over even a simple typo on an attribute access. Thx, -g On Mar 11, 2012 10:03 PM, <j...@apache.org> wrote: