Ge0rG, why doesn't your client know? Don't you do local accounting too, so that you compare the expected handled count with the reported handled count?
lovetoxhas joined
Yagizahas left
Ge0rGhas left
waqashas left
jubalhhas joined
Yagizahas joined
lnjhas joined
Ge0rGhas left
bjchas left
rishiraj22has left
Ge0rGhas left
Yagizahas left
Yagizahas joined
rishiraj22has left
rishiraj22has left
rishiraj22has left
Ge0rGhas left
Yagizahas left
Yagizahas joined
Ge0rG
flow: how is it supposed to? There is no corrective mechanism in 0198. You can only detect wrong x counting in one direction, not the other
Kevhas left
rishiraj22has left
alacerhas left
alacerhas joined
rishiraj22has left
rishiraj22has joined
alacerhas left
alacerhas joined
rishiraj22has left
Yagizahas left
Yagizahas joined
rishiraj22has left
Tobiashas left
Tobiashas joined
Ge0rGhas left
Yagizahas left
Yagizahas joined
alacerhas left
alacerhas joined
alacerhas left
rishiraj22has left
alacerhas joined
rishiraj22has joined
rishiraj22has left
rishiraj22has joined
Ge0rGhas left
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
tahas joined
Yagizahas left
MattJhas joined
Ge0rGhas left
kasper.dementhas joined
Dave Cridlandhas left
404.cityhas joined
moparisthebesthas joined
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
404.cityhas left
Ge0rGhas left
marmistrzhas joined
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
Ge0rGhas left
Ge0rGhas left
kasper.dementhas joined
pep.has left
404.cityhas left
404.cityhas joined
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
404.cityhas left
404.cityhas joined
Valerianhas joined
rionhas joined
danielhas left
danielhas joined
Valerianhas left
Valerianhas joined
kasper.dementhas joined
kasper.dementhas left
rishiraj22has left
Guushas joined
alacerhas left
alacerhas joined
alacerhas left
alacerhas joined
lumihas joined
rishiraj22has left
rishiraj22has joined
Kevhas joined
alacerhas left
lorddavidiiihas left
danielhas left
danielhas joined
alacerhas joined
Syndacehas left
Syndacehas joined
kasper.dementhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
kasper.dementhas left
mikaelahas joined
kasper.dementhas joined
rishiraj22has left
alacerhas left
la|r|mahas joined
alacerhas joined
flow
Ge0rG, right, you can only detect miscounting of the other party. But that means the other party can detect miscounting of you. And both parties should terminate the stream if they detect it. win?
kasper.dementhas joined
Valerianhas left
Holger
Obviously only works if the other parties count is too large, while in Georg's case it was too low, no?
jonasw
exactly what Holger says
jonasw
flow, if you missed counting a few stanzas, you wouldn’t know (and the other party wouldn’t know either). you’d just assume that the most recent N stanzas were lost and you have to resend them
Valerianhas joined
jubalhhas joined
Valerianhas left
Valerianhas joined
flow
ok, that makes sense. But is the counter still off after the resend on resume?
Zashhas left
jonasw
but how would you know?
flow
assuming that all stanzas arrive and that the consuming client counts properly
jonasw
it cannot distinguish stanzas sent due to resumption and stanzas sent normally
jonasw
for all it knows, it just got a bunch of stanzas which might or might not be retransmissions
flow
does it need to distinguish?
jonasw
to detect a counter which is off, I think so
j.rhas joined
flow
well, my question was if the counter would be still off after the resend on resume assuming that all stanzas arrive and that the consuming client counts them properly
jonasw
uh, I somehow misunderstood that
jonasw
I don’t even know what I did understand
lskdjfhas joined
flow
I'm trying to figure out if the counter will be off for an extended period, or if it will sometimes/usually heal after the resumption
flow
but the main problem is a broken SM implementation, and those are always an issue (see SM in latest openfire)
Valerianhas left
jonasw
flow, I guess this depends on why the counter is off in the first place. If it is off for example because the client miscounts during resumption due to a race condition, it would (still) be broken after resumption.
jonasw
but yeah, the duplicate stanzas are, I think, a symptom of re-synchronising the counters
jonasw
so unless the counter gets disturbed again during the resumption, it should be in sync
labdsfhas left
labdsfhas joined
Guus
For the record, we disabled the SM implementation by default in Openfire, while the issue persists.
labdsfhas left
danielhas left
danielhas joined
j.rhas joined
jubalhhas joined
Dave Cridlandhas left
Dave Cridlandhas joined
labdsfhas joined
Alexhas joined
jubalhhas joined
nycohas left
labdsfhas left
labdsfhas joined
alacerhas left
alacerhas joined
Alexhas left
rishiraj22has left
Guushas left
Guushas joined
Guushas left
jubalhhas left
cookiehas left
goffihas joined
j.rhas joined
cookiehas joined
jubalhhas joined
la|r|mahas joined
la|r|mahas joined
jubalhhas left
jerehas joined
blablahas left
Andrew Nenakhovhas left
Andrew Nenakhovhas joined
Ge0rGhas left
Ge0rG
flow: after the other party receives a bunch of duplicates, the counters are "synchronized" again.
la|r|mahas left
Ge0rG
Now I have logs from both sides when it happens with prosody vs yaxim, and I'm sure it wasn't a change in yaxim, because I did some heavy log analysis when implementing SM
Ge0rG
I blame Link Mauve, for mod_cache_c2s_caps
Link Mauve
Oh?
Link Mauve
How could that trigger c2s 0198 miscount? :o
Link Mauve
Especially in this direction.
Guushas joined
jonasw
eating stanzas before they enter the stream but after they were counted?
jubalhhas joined
Ge0rG
Luckily the client never receives the stanza in question, and the server doesn't log c2s out.