Should connection be closed when receiving error?

Hey, I would vote for not closing the connection from a single bogus message. Even if the connection gets re-created automatically soon after.
I see the chance that other (unrelated) messages might get lost during the connection close and re-creation. Also, I’m considering the connection re-creation as an relatively expensive operation. An evil mind might use this behavior for putting stress on the backend system that uses the Smack library or even break it.

You might want to check my recent bugreport, which is kind of related :slight_smile: