Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-12-13 | Revert "Replace asyncio.ensure_future() with asyncio.create_task()" | mathieui | |
This reverts commit bac6a4b2bf2fc98401e0de7168c4a5cf31b08b37. This is not actually something we want | |||
2021-11-18 | Replace asyncio.ensure_future() with asyncio.create_task() | Emmanuel Gil Peyrot | |
The latter function got introduced in Python 3.7, which is conveniently our MSPV, so let’s use that. | |||
2021-07-05 | xmlstream: refine type check | mathieui | |
2021-07-05 | matcher: fix idsender typing | mathieui | |
2021-07-05 | handler: fix more types | 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 | cert: add some typing | mathieui | |
2021-07-03 | xmlstream: add more types | mathieui | |
2021-07-03 | stanzabase: types | mathieui | |
2021-07-03 | typing: add to tostring | mathieui | |
2021-07-03 | typing: matchers and senders | mathieui | |
Leftover error that I cannot fix: * https://github.com/python/mypy/issues/708 Leftover error that I am unsure of what to do: * xml handlers are not properly typed (it seems like nothing in slix is using it, considering a removal instead of adding an Union everywhere) | |||
2021-06-28 | refactor: type the resolver | mathieui | |
almost perfect, except for python < 3.9 making it so we can’t have nice things. | |||
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 | stanza: rework the .append() and __eq__ methods | mathieui | |
This was very much broken on plugin iterables and other reasons. | |||
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 | stanzabase: make _get_plugin part of the public API | mathieui | |
it is the only way I know of checking if an element is present in a stanza without creating it or checking the XML manually. | |||
2021-02-04 | xmlstream: make dns_answers private | mathieui | |
2021-02-04 | xmlstream: make connect_loop_wait private | mathieui | |
2021-02-04 | docs: remove python 2 bug workaround explanations | 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-06 | Merge branch 'no-ordered-stuff' into 'master' | mathieui | |
Remove usage of OrderedDict See merge request poezio/slixmpp!77 | |||
2020-12-06 | Remove OrderedDict usage | Emmanuel Gil Peyrot | |
We now support only Python 3.7+, this means we can rely on dict being ordered by order of insertion, and thus no need to use OrderedDict from collections. | |||
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. |