jdev - 2020-04-26


  1. pep.

    jonas’, out of curiosity (re xsf@), is it possible to do IBR with aioxmpp and go on with bind afterwards?

  2. jonas’

    pep., you’d have to SASL first

  3. jonas’

    it is, but you’ll re-implementing much of what aioxmpp.Client does

  4. jonas’

    I mean, it’s all in some functions which are called by aioxmpp.Client in the end. However, that class ties it all together with auto-resumption and stuff

  5. jonas’

    throwing the connection away and reconnecting is saner

  6. pep.

    hmm

  7. jonas’

    that said, you *can* do it, and it may make sense for some one-shot use-cases (IBR testing?) but other than that, I’d not recommend it

  8. pep.

    not recommend doing IBR and reusing the stream? Or not recommend doing this with aioxmpp?

  9. jonas’

    the latter

  10. pep.

    k

  11. jonas’

    if you can get a library to take IBR as a pre-auth, post-TLS stream negotiation step, why not.

  12. jonas’

    but the order of client stream negotiation steps is pretty hardcoded in aioxmpp at this point

  13. pep.

    I see

  14. jonas’

    I had it differently in the past, but that only led to pain and sorrow

  15. jonas’

    (and I see that pain and sorrow repeated in mellium.im/xmpp

  16. pep.

    I was just curious, I doubt many libraries allow this easily anyway

  17. jonas’

    (and I see that pain and sorrow repeated in mellium.im/xmpp)

  18. jonas’

    (which, for the record, would support your usecase I think)

  19. pep.

    I could do it in slixmpp with the extra glue but it's all borked..

  20. pep.

    See the now almost two years MR waiting..

  21. lovetox

    pep. but why do you need this?

  22. pep.

    Just curious

  23. pep.

    I don't "need it"

  24. pep.

    If I can reuse the stream, why not.

  25. lovetox

    i also thought about reusing the stream and then decided its not worht it

  26. lovetox

    the 2 seconds to reconnect dont hurt, users dont register accounts daily

  27. jonas’

    don’t look at that thing which is registering and deleting an account every 240s

  28. lovetox

    also from the XEP i think it is not a MUST work with all servers

  29. lovetox

    so i thought i dont want to run into weird errors and then have to handle also these