-
Creator
Why I Am Here?
-
Creator
Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator Creator
-
Sam Whited
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
-
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
-
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
-
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.
-
Link Mauve
Sam Whited, setting a @id is a SHOULD in the RFC though.
-
Link Mauve
(And a MUST on iq of course.)
-
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.
-
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!
-
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 :)
-
Zash
I've seen issues when certain things reused the @id for replies to message stanzas.
-
No one is here... I think
Hi guys 🙂
-
Sam Whited
o/
-
edhelas
do you guys know if there's support of ephemeral messages in some XMPP clients ?
-
edhelas
https://xmpp.org/extensions/inbox/ephemeral-messages.html