jdev - 2020-11-25


  1. Creator

    Why I Am Here?

  2. 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

  3. 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?

  4. 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?

  5. flow

    configurable, defaults to no

  6. 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

  7. flow

    depending on the version, smack

  8. Sam Whited

    ah cool, thanks

  9. 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

  10. 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

  11. 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

  12. jonas’

    https://github.com/horazont/aioxmpp/blob/devel/aioxmpp/stream.py#L2058 I don’t discriminate

  13. Sam Whited

    That's fair

  14. Sam Whited

    thanks jonas’

  15. 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.

  16. Link Mauve

    Sam Whited, setting a @id is a SHOULD in the RFC though.

  17. Link Mauve

    (And a MUST on iq of course.)

  18. 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

  19. Sam Whited

    oh, it's in the section specifically about the ID attribute (8.1.3) where it's a RECOMMENDED. Fair enough.

  20. Link Mauve

    Right.

  21. Sam Whited

    Cool, no need to overthink it anymore then, I'm just going to do that. Thanks for pointing that out!

  22. Ge0rG

    The really nasty evil thing you should NEVER EVER do is to set an @id on *received* packets.

  23. Ge0rG

    s/packets/stanzas

  24. Sam Whited

    Yes, I can see how that would lead to confusion :)

  25. Zash

    I've seen issues when certain things reused the @id for replies to message stanzas.

  26. No one is here... I think

    Hi guys 🙂

  27. Sam Whited

    o/

  28. edhelas

    do you guys know if there's support of ephemeral messages in some XMPP clients ?

  29. edhelas

    https://xmpp.org/extensions/inbox/ephemeral-messages.html