1. 05 Jul, 2021 1 commit
  2. 03 Jul, 2021 2 commits
  3. 28 Jun, 2021 1 commit
  4. 02 May, 2021 1 commit
  5. 30 Apr, 2021 1 commit
  6. 22 Apr, 2021 1 commit
  7. 18 Apr, 2021 1 commit
  8. 09 Apr, 2021 1 commit
  9. 08 Apr, 2021 1 commit
  10. 25 Feb, 2021 1 commit
  11. 24 Feb, 2021 1 commit
  12. 20 Feb, 2021 1 commit
  13. 05 Feb, 2021 1 commit
  14. 04 Feb, 2021 3 commits
  15. 31 Jan, 2021 1 commit
  16. 29 Jan, 2021 9 commits
  17. 28 Jan, 2021 3 commits
  18. 22 Jan, 2021 1 commit
  19. 17 Jan, 2021 1 commit
  20. 10 Dec, 2020 1 commit
  21. 04 Dec, 2020 1 commit
    • mathieui's avatar
      XMLStream: Add a wait_until coroutine · 3d1e539d
      mathieui authored
      It will set a disposable handler on an event and wait on it with a
      specific timeout. Useful for integration tests without callback hell.
      3d1e539d
  22. 12 Jun, 2020 1 commit
  23. 02 May, 2020 1 commit
  24. 04 Apr, 2020 2 commits
  25. 29 Mar, 2020 1 commit
    • ge0rg's avatar
      Reset reconnect delay on manual reconnect, add delay event · 62125502
      ge0rg authored
      This is just a hotfix workaround for an underlying problem. The
      `_connect_routine` code is "blocking" (in an async way) for
      `connect_loop_wait` seconds, so that a fresh-started manual reconnect
      will be silenty delayed. This code does the following changes:
      
      1. It moves the delay to before the DNS resolution (with the exponential
         back-off it might well be that the DNS records are changed while
         slixmpp is waiting).
      
      2. It adds a new event `reconnect_delay` that gets passed the number of
         seconds it will delay before actually reconnecting
      
      3. It resets the `connect_loop_wait` timer on a manual connect/reconnect
         call to fix the interactive experience.
      
      A *proper fix* would replace the sleep in `_connect_routine` with a
      properly timered re-invocation of it, but I don't understand enough of
      asyncio for pulling off that magic, and this is actually a proper
      improvement. Also I tested this and it works!
      62125502
  26. 23 Mar, 2020 1 commit
    • ge0rg's avatar
      reconnect: fix callback when not currently connected · d85efec7
      ge0rg authored
      The 'disconnected' event is normally fired from connection_lost(), which
      is called by the connection code when the connection is lost after being
      established. However, if the connection wasn't successfully established,
      a manual /reconnect no-ops because it waits for the 'disconnected'
      callback which never fires. This patch does two things:
      
      1. Immediately fire a 'disconnected' event in disconnect() if there is
         no transport.
      
      2. Register the 'disconnected' event handler in reconnect() *before* it
         can be fired.
      d85efec7