Age | Commit message (Collapse) | Author | |
---|---|---|---|
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. | |||
2019-08-26 | Remove a block of compatibility code | mathieui | |
even if the user makes that mistake, it does not cause problems down the line. | |||
2019-07-13 | Make generated stanza id truly random | Maxime “pep” Buquet | |
Fix long-standing security issues where stanza @id be predictable. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net> | |||
2019-07-03 | xmlstream.disconnect: add compat behaviour, set wait to default `2.0` when ↵ | Maxime “pep” Buquet | |
True is passed. Update documentation Signed-off-by: Maxime “pep” Buquet <pep@bouah.net> | |||
2019-04-24 | xmlstream.disconnect: fix frenchism in docstring | Maxime “pep” Buquet | |
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net> | |||
2019-04-24 | xmlstream.disconnect: typing hints | Maxime “pep” Buquet | |
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net> | |||
2019-03-26 | mark end-of-stream as session-ending event | Georg Lukas | |
2019-03-26 | Do not directly enqueue connect() as event handler, parameter mismatch | Georg Lukas | |
2019-03-26 | Do not close stream on 0-timeout disconnect, allows 0198 resume | Georg Lukas | |
2019-03-26 | Propagate disconnect() reason into 'disconnected' event | Georg Lukas | |
2019-02-22 | Fix slixmpp.ClientXMPP.cancel_connection_attempt() | ehendrix23 | |
2018-10-15 | fixing deprecation warnings for pytest | Florian Klien | |
2018-10-09 | Add the loop parameters at places where it has been forgotten | mathieui | |
2018-08-08 | Fix compatibility with python 3.5 and 3.6 | mathieui | |
which do not have loop.start_tls and require the old ssl implementation. | |||
2018-08-07 | Fix TLS with python 3.7 | mathieui | |
Use the "new" sslproto API instead of the deprecated TLS API. Also remove the unused "socket" parameter in XMLStream.__init__. | |||
2018-07-01 | Switch from @asyncio.coroutine to async def everywhere. | Emmanuel Gil Peyrot | |
2018-02-11 | asyncio.async has been scheduled for removal for a long time now | mathieui | |
move to asyncio.ensure_future | |||
2018-01-10 | Fix typos, thanks `codespell`! | Emmanuel Gil Peyrot | |
2017-11-23 | Record the current connection attempt in a future and allow cancellation | mathieui | |
It does not make sense to have competing connection attempts, as the XMLStream class is not designed for this. On slow and unpredictable networks, it means we could have two c2s connections opened, leading to mayhem. | |||
2017-07-17 | xmlstream: Remove pygments dumping. | Emmanuel Gil Peyrot | |
It’s slow and makes the debug logs difficult to parse. | |||
2017-05-24 | always define ssl_context | Mathias Ertl | |
2017-05-24 | pass SSL context to TLS connections | Mathias Ertl | |
2017-05-24 | add function to explicitly get the ssl context | Mathias Ertl | |
2017-05-16 | Merge remote-tracking branch 'samwhited/sslsocket_workaround' | louiz’ | |
2017-05-08 | Fixes port being set to 0 when connecting via hostname. | Tom Wambold | |
This seems to be the same issue as: https://dev.louiz.org/issues/3164 Using their suggested fix, if the DNS lookup doesn't return a port, use the one passed in instead. | |||
2017-02-16 | xmlstream: Warn when the parser is None when data is received. | Emmanuel Gil Peyrot | |
2016-12-29 | Check for XML parsing errors and disconnect in that case.WIP | Emmanuel Gil Peyrot | |
2016-12-29 | XMLStream: Break a long line to make it more readable. | Emmanuel Gil Peyrot | |
2016-10-06 | Fix fetching the SSL socket for Python 3.4 and 3.5 | Sam Whited | |
2016-10-05 | Remove monkeypatching hack on the event loop | mathieui | |
This allowed us to schedule events in-order later in the event loop, but was detrimental to using other event loops and debugging. | |||
2016-09-30 | Fix #3226 (unicity of scheduled event names) | mathieui | |
Thanks tchiroux for raising the issue and providing the fix as well. | |||
2016-09-30 | Minor documentation fixes | Sam Whited | |
2016-08-12 | Provide domain name to loop.create_connection if using SSL. | Gasper Zejn | |