Library maintainers: if the user of your library doesn't set an ID on message and/or presence stanzas where it's not required, do you do it for them even though technically the spec doesn't require it?
Sam Whited
Or can you think of any reason (other than syscalls for randomness being somewhat expensive) not to? Eg. is there some common use case where the user would *want* to send an empty ID?
flow
configurable, defaults to no
grasshopperhas left
grasshopperhas joined
Sam Whited
flow: is that something an existing library does, or just a suggestion? I'd be curious to see what other actual libraries are doing too
flow
depending on the version, smack
Sam Whited
ah cool, thanks
flow
I also don't think there is a reason get randomness via syscall for every stanza id, there should be secure enough user-space rng's that if seeded correctly are good enough
flow
but strictly speaking, that is also configurable in smack, i.e. a user could configure smack to use the randomness source of his wishing for stanza id generation
grasshopperhas left
grasshopperhas joined
flow
I think there might be an argument for id-less stanzas for certain systems, i.e. where every byte on the wire that can be safed should be safed
Holgerhas left
jonas’
https://github.com/horazont/aioxmpp/blob/devel/aioxmpp/stream.py#L2058 I don’t discriminate
Sam Whited
That's fair
Sam Whited
thanks jonas’
jonas’
if no ID is set, a random one will be generated. sending ID-less stanzas is just a recipe for pain once you start any type of tracking and I don’t want users to have to bother with that.
grasshopperhas left
grasshopperhas joined
grasshopperhas left
grasshopperhas joined
grasshopperhas left
grasshopperhas joined
grasshopperhas left
grasshopperhas joined
grasshopperhas left
grasshopperhas joined
Link Mauve
Sam Whited, setting a @id is a SHOULD in the RFC though.
grasshopperhas left
Link Mauve
(And a MUST on iq of course.)
adityaborikarhas left
grasshopperhas joined
Sam Whited
Link Mauve: I think that's just for stream start, not stanzas, right? I just read through the stanza semantics section again and didn't see that
Sam Whited
oh, it's in the section specifically about the ID attribute (8.1.3) where it's a RECOMMENDED. Fair enough.
grasshopperhas left
Link Mauve
Right.
Sam Whited
Cool, no need to overthink it anymore then, I'm just going to do that. Thanks for pointing that out!
grasshopperhas joined
Wojtekhas joined
adityaborikarhas joined
Ge0rG
The really nasty evil thing you should NEVER EVER do is to set an @id on *received* packets.
Ge0rG
s/packets/stanzas
Sam Whited
Yes, I can see how that would lead to confusion :)
grasshopperhas left
grasshopperhas joined
Zash
I've seen issues when certain things reused the @id for replies to message stanzas.
grasshopperhas left
grasshopperhas joined
marmistrzhas left
alex-a-sotohas left
alex-a-sotohas joined
alacerhas left
alacerhas joined
grasshopperhas left
grasshopperhas joined
No one is here... I thinkhas joined
florettahas left
marmistrzhas joined
grasshopperhas left
No one is here... I think
Hi guys 🙂
No one is here... I thinkhas left
Sam Whited
o/
Beherithas left
Beherithas joined
Holgerhas joined
alex-a-sotohas left
alex-a-sotohas joined
grasshopperhas joined
grasshopperhas left
grasshopperhas joined
lovetoxhas joined
grasshopperhas left
alex-a-sotohas left
alex-a-sotohas joined
sonnyhas left
sonnyhas joined
etahas left
etahas joined
florettahas joined
grasshopperhas joined
etahas left
etahas joined
grasshopperhas left
grasshopperhas joined
marmistrzhas left
defanorhas left
grasshopperhas left
jonnjhas left
grasshopperhas joined
Kevhas left
jonnjhas joined
jonnjhas left
jonnjhas joined
marmistrzhas joined
grasshopperhas left
grasshopperhas joined
marmistrzhas left
raghavgururajanhas left
raghavgururajanhas joined
machas joined
marmistrzhas joined
machas left
machas joined
grasshopperhas left
NosoyHacker404has left
NosoyHacker404has joined
defanorhas joined
machas left
grasshopperhas joined
grasshopperhas left
lovetoxhas left
adityaborikarhas left
grasshopperhas joined
grasshopperhas left
grasshopperhas joined
sonnyhas left
sonnyhas joined
lovetoxhas joined
grasshopperhas left
alacerhas left
alacerhas joined
jubalhhas joined
grasshopperhas joined
goffihas left
florettahas left
florettahas joined
grasshopperhas left
grasshopperhas joined
grasshopperhas left
grasshopperhas joined
jubalhhas left
grasshopperhas left
grasshopperhas joined
edhelas
do you guys know if there's support of ephemeral messages in some XMPP clients ?