Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-07-05 | xmlstream: refine type check | mathieui | |
2021-07-05 | typing: add a bunch of type ignores | mathieui | |
because this is too smart for mypy and I do not want to rewrite those things right now. | |||
2021-07-03 | fix: please python 3.7 | mathieui | |
2021-07-03 | xmlstream: add more types | mathieui | |
2021-06-28 | refactor: remove the now obsolete future_wrapper and asyncio-related module | mathieui | |
2021-05-02 | xmlstream: do not re-send queued stanzas on each connect | mathieui | |
each sent stanza should be purged, obviously… | |||
2021-04-30 | xmlstream: fix slow tasks scheduling | mathieui | |
- wrong attribute used - some mistakes in the slow tasks function | |||
2021-04-22 | xmlstream: fix use of the waiting queue | mathieui | |
2021-04-18 | Allow handshake in stream.send() when not connected yet | mathieui | |
fix #3464 | |||
2021-04-12 | Merge branch 'tentative-fix-for-reconnect-race' into 'master' | mathieui | |
xmlstream: do not allow stanzas outside a session See merge request poezio/slixmpp!154 | |||
2021-04-09 | Fix #3441: Do not assign ID to inbound stanzas | mathieui | |
2021-04-08 | xmlstream: do not allow stanzas outside a session | mathieui | |
except for the bind, obviously | |||
2021-02-26 | xmlstream: add a wrap() method for ensure_future | mathieui | |
2021-02-24 | xmlstream: add event_async() for events that need in-order processing | mathieui | |
Essentially stream feature handlers which can then make sure the feature has been process correctly (e.g. 0077). This is the same approach as slixmpp!4. | |||
2021-02-20 | xmlstream: remove loop parameter to wait_for | mathieui | |
Deprecated in 3.8, removed in 3.10 | |||
2021-02-05 | global: rewrite copyright notice to use comments | mathieui | |
2021-02-04 | xmlstream: make dns_answers private | mathieui | |
2021-02-04 | xmlstream: make connect_loop_wait private | mathieui | |
2021-02-04 | docs/xmlstream: remove HTTP proxy references | mathieui | |
It has been removed years ago. | |||
2021-01-31 | xmlstream: add a simple contextmanager for temporary events | mathieui | |
2021-01-29 | xmlstream: keep value of "end_session_on_disconnect" | mathieui | |
That value should be set statically. Worst case is we fail to resume the session. | |||
2021-01-29 | xmlstream: ensure slow futures are scheduled on this loop | mathieui | |
2021-01-29 | xmlstream: Make the reconnect handler a coroutine | mathieui | |
2021-01-29 | xmlstream: do not touch connection state on abort() | mathieui | |
leave it to the connection_lost handler | |||
2021-01-29 | xmlstream: set disconnected future on event | mathieui | |
2021-01-29 | xmlstream: end the parser when the stream has ended | mathieui | |
2021-01-29 | xmlstream: rename run_filters | mathieui | |
2021-01-29 | xmlstream: change the connection logic | mathieui | |
* use asyncio wait_for to wait for a disconnected event * abort the connection if the timeout is not enough | |||
2021-01-29 | xmlstream: purge send queue and pending tasks on session end | mathieui | |
and keep track of slow tasks | |||
2021-01-28 | xmlstream: do not cancel the send filter task | mathieui | |
it does not make sense to cancel it, it does not do anything when the sending queue is empty, and clients should not fill the send queue when not connected anyway. | |||
2021-01-28 | xmlstream: fix race conditions on handlers | mathieui | |
2021-01-28 | xmlstream: handle done tasks in wait_until | mathieui | |
and handle other loops properly | |||
2021-01-22 | Handle connection errors in start_tls (fix #3449) | mathieui | |
2021-01-17 | XMLStream: Only fire "disconnected" after removal of related objects | mathieui | |
Otherwise we could end up reconnecting and getting some useful things like the XML parser or other stuff removed afterwards. Also, move 'session_end' before 'disconnected', it makes more sense that way. | |||
2020-12-10 | docs: update docstrings for sphinx conformity | mathieui | |
Remove most references to timeout/callback/ifrom/timeout_callbacks args | |||
2020-12-04 | XMLStream: Add a wait_until coroutine | mathieui | |
It will set a disposable handler on an event and wait on it with a specific timeout. Useful for integration tests without callback hell. | |||
2020-06-12 | Cancel run_filters task upon disconnect | ehendrix23 | |
2020-05-02 | Fix a regression introduced in 1.5.0 | mathieui | |
Due to the send queue, messages sent immediatly before calling "disconnect" would not be sent. | |||
2020-04-04 | fire 'disconnected' callback from abort() | Georg Lukas | |
2020-04-04 | expose is_connecting state based on connection attempt future | Georg Lukas | |
2020-03-29 | Reset reconnect delay on manual reconnect, add delay event | Georg Lukas | |
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! | |||
2020-03-23 | reconnect: fix callback when not currently connected | Georg Lukas | |
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. | |||
2019-12-27 | Put the queue exception at toplevel | mathieui | |
2019-12-27 | Improve the send queue code a bit | mathieui | |
2019-12-27 | add a separate place for slow ass filters | mathieui | |
2019-12-27 | raise Exception | mathieui | |
2019-12-27 | Try/except around outbound stanza processing | mathieui | |
to avoid killing the send loop when a filter has an error | |||
2019-12-27 | Remove trailing whitespace | mathieui | |
2019-12-27 | Run the send queue in a separate coroutine | mathieui | |
To be able to run async stream filters | |||
2019-08-28 | Revert "Remove a block of compatibility code" | Maxime “pep” Buquet | |
This reverts commit 37bc1bb9b3bdc26b7f28b30406d1013f9b0f6ceb. Confusion confusion. Mathieui thought this was a sleekxmpp thing when it's actually been added not so long ago. |