[jdev] XMPP chat flooding?

Andreas Haferburg haferbur at inf.fu-berlin.de
Mon Dec 13 06:20:38 CST 2010


for the Saros project [1] we use XMPP chat for communication (using 
Smack). Saros is an Eclipse plugin, providing distributed editing 
functionality: When one session participant edits a shared document, we 
use XMPP chat messages to replicate these changes in the editors of all 
the other session participants.

Currently we only send one message (XML stanza, right?) per second to 
each participant (typically only one other person, but occasionally 
2-4). However, this means that there's a delay of up to 1000ms between a 
change and its replication.

Ideally, we would like to achieve the replication in as close to 
real-time as possible. According to [2], point 7, the number of "XML 
stanzas that a server will accept over a given TCP connection or for a 
given JabberID in a given time period" could be limited. We would like 
to know how we should handle that. Exactly how much is too much here?

Is there any way to request information about what we're allowed to do? 
What exactly happens if we're doing something forbidden, do we get 
disconnected? Banned? (Can we reconnect immediately?) Is there a 
specific error message (or warning)?

Thank you very much

[1] http://www.saros-project.org/
[2] http://xmpp.org/extensions/xep-0205.html#solutions

More information about the JDev mailing list