Project

General

Profile

Post-processors always invoked?

Daniele Ricci
Added 11 months ago

Hello everyone,
If I'm reading the code correctly here:
https://tigase.tech/projects/tigase-server/repository/revisions/tigase-server-7.1.3/entry/src/main/java/tigase/server/xmppsession/SessionManager.java#L1889

The post-processors are invoked if the pre-processors didn't block the packet before, even if any processors processed the packet. However the documentation states:

Post-processing - If there is no processor for the stanza then the packet goes through all post-processors.

Am I getting the meaning right? What am I reading wrong here?

Thanks for your help!!


Replies (1)

(1)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam 11 months ago

Hi,

Yes, you are correct. The current version of Tigase XMPP Server calls PostProcessors for all packets which were not stopped by PreProcessors. This change was created to fix the issue which was related to the handling of messages sent to users bare JID which had only connections with negative priority. We already discussed the impact of this change and possibility to revert behavior of SessionManager in #5692, but for now, we decided to leave it as it is.

We will need to fix description of PostProcessors in the documentation of Tigase XMPP Server. Thank you for pointing this out.

    (1-1/1)