Message bounced to sender
I got a bounced message with type="error", originating from this code:
The socket was broken and the message was bounced correctly.
But I'd like to handle such cases as if the user were offline (e.g. message would go to offline storage). Do you think it's possible? Or is that case you've handled that way by design?
Any insight would be much appreciated.
Added by Andrzej Wójcik almost 4 years ago
This is very rare case in which message for which you already received bound with "error" was already processed by SessionManager but not sent to TCP connection when TCP connection failed.
In this case current response with "error" is correct by design, however if you would suggest to enable Stream Management then it should work in way you expected it to work, as it will try to store messages not processed by ClientConnectionManager to offline store.
I explained processing done by Stream Management when connection is lost in comment for other question on forum (see: https://projects.tigase.org/boards/4/topics/4409?r=4467#message-4467)
Added by Daniele Ricci almost 4 years ago
Since I had SM activated in that case, do you mean to tell me that the message was redelivered anyway and the error stanza that was bounced back was related to the original sending attempt? I'm afraid I can't verify from server logs this time, but can you confirm this is what actually happened?