summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream
AgeCommit message (Collapse)Author
2018-10-15fixing deprecation warnings for pytestFlorian Klien
2018-10-09Add the loop parameters at places where it has been forgottenmathieui
2018-10-03stanzabase: Remove python2 legacy.Emmanuel Gil Peyrot
2018-08-08Fix compatibility with python 3.5 and 3.6mathieui
which do not have loop.start_tls and require the old ssl implementation.
2018-08-07Fix TLS with python 3.7mathieui
Use the "new" sslproto API instead of the deprecated TLS API. Also remove the unused "socket" parameter in XMLStream.__init__.
2018-07-02Fix missing async def in function.Emmanuel Gil Peyrot
2018-07-01Switch from @asyncio.coroutine to async def everywhere.Emmanuel Gil Peyrot
2018-02-11asyncio.async has been scheduled for removal for a long time nowmathieui
move to asyncio.ensure_future
2018-01-10Fix typos, thanks `codespell`!Emmanuel Gil Peyrot
2017-11-23Record the current connection attempt in a future and allow cancellationmathieui
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-17xmlstream: Remove pygments dumping.Emmanuel Gil Peyrot
It’s slow and makes the debug logs difficult to parse.
2017-05-24always define ssl_contextMathias Ertl
2017-05-24pass SSL context to TLS connectionsMathias Ertl
2017-05-24add function to explicitly get the ssl contextMathias Ertl
2017-05-16Merge remote-tracking branch 'samwhited/sslsocket_workaround'louiz’
2017-05-08Fixes 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-16xmlstream: Warn when the parser is None when data is received.Emmanuel Gil Peyrot
2016-12-29Check for XML parsing errors and disconnect in that case.WIPEmmanuel Gil Peyrot
2016-12-29XMLStream: Break a long line to make it more readable.Emmanuel Gil Peyrot
2016-10-23Transform an if into an elif in cert parsing.Emmanuel Gil Peyrot
2016-10-22sed -i 's/set(\[\(.*\)\])$/{\1}/g' **/*.pyEmmanuel Gil Peyrot
2016-10-22sed -i 's/set((\(.*\)))$/{\1}/g' **/*.pyEmmanuel Gil Peyrot
2016-10-22sed -i 's/set((\(.*\),))$/{\1}/g' **/*.pyEmmanuel Gil Peyrot
2016-10-06Fix fetching the SSL socket for Python 3.4 and 3.5Sam Whited
2016-10-05Remove monkeypatching hack on the event loopmathieui
This allowed us to schedule events in-order later in the event loop, but was detrimental to using other event loops and debugging.
2016-10-02Add a fallback if the lang we want is not availablemathieui
Previously, trying to get a text node with a lang which is different from the one we specified would return nothing, which means e.g. a message would be ignored because its body is of lang 'fr' when we setup slixmpp to prefer 'en'. We want to return something when there is an available, valid content in a different language.
2016-09-30Fix #3226 (unicity of scheduled event names)mathieui
Thanks tchiroux for raising the issue and providing the fix as well.
2016-09-30Minor documentation fixesSam Whited
2016-09-21ElementBase: Remove support for TitleCase methods.Emmanuel Gil Peyrot
This gains about 1/8th of the time spent in __getitem__.
2016-09-20ElementBase: Remove deprecated find() and findall() methods.discoEmmanuel Gil Peyrot
2016-09-20ElementBase: Remove attrib interface.Emmanuel Gil Peyrot
2016-09-20ElementBase: Remove subitem interface.Emmanuel Gil Peyrot
2016-08-19Merge remote-tracking branch 'zejn/master'louiz’
2016-08-17ElementBase: micro-optimise __getitem__, hands down the most often called ↵Emmanuel Gil Peyrot
function This makes it go down from 8.767s to 7.960s in a random benchmark. Remove unnecessary assignations, don’t create an OrderedDict from a dict to then convert it to a dict again, only obtain the get_method2 name if get_method wasn’t present. get_method2 (the title-case one) takes about 1/8th of the total time spent in this function, we should eliminate it as soon as possible.
2016-08-12Provide domain name to loop.create_connection if using SSL.Gasper Zejn
2016-05-28Fix the Waiter handler for asynciomathieui
2015-10-02Merge branch 'sleek-merge'mathieui
2015-10-02Merge branch 'develop' of https://github.com/fritzy/SleekXMPP into sleek-mergemathieui
Conflicts: README.rst examples/IoT_TestDevice.py examples/disco_browser.py setup.py sleekxmpp/jid.py sleekxmpp/plugins/google/auth/stanza.py sleekxmpp/plugins/google/gmail/notifications.py sleekxmpp/plugins/google/nosave/stanza.py sleekxmpp/plugins/google/settings/settings.py sleekxmpp/thirdparty/__init__.py sleekxmpp/thirdparty/socks.py sleekxmpp/thirdparty/statemachine.py sleekxmpp/util/__init__.py sleekxmpp/xmlstream/xmlstream.py slixmpp/basexmpp.py slixmpp/plugins/xep_0004/stanza/form.py slixmpp/plugins/xep_0009/rpc.py slixmpp/plugins/xep_0050/adhoc.py slixmpp/plugins/xep_0065/proxy.py slixmpp/plugins/xep_0084/stanza.py slixmpp/plugins/xep_0202/time.py slixmpp/plugins/xep_0323/sensordata.py slixmpp/plugins/xep_0325/control.py slixmpp/plugins/xep_0325/stanza/control.py slixmpp/roster/single.py slixmpp/stanza/atom.py slixmpp/stanza/rootstanza.py slixmpp/test/slixtest.py slixmpp/util/sasl/mechanisms.py slixmpp/version.py slixmpp/xmlstream/stanzabase.py tests/test_stanza_xep_0323.py tests/test_stanza_xep_0325.py tests/test_stream_xep_0323.py tests/test_stream_xep_0325.py
2015-09-25Reset the DNS answers after a connection is made succesfullymathieui
2015-09-24Fix IPv6 resolving with aiodns 1.0mathieui
2015-09-19Fix connecting to a custom host/portmathieui
2015-09-14(Temporary) fix for python 3.5mathieui
This will work until the old ssl implementation is finally deprecated. Hopefully, new features to painlessy implement starttls will be around by then.
2015-09-14Bump the requirements to aiodns 1.0mathieui
(and use install_requires instead of requires in the setup.py)
2015-08-08Strip strings after pygments, so we don’t include an needless newline.Emmanuel Gil Peyrot
2015-08-08Reset the connect future after a disconnectmathieui
2015-07-21Add a waiting time before reconnecting automaticallymathieui
Punishing a server for being down by sending more traffic is not a nice thing to do. Taking 100% of the CPU is not nice either.
2015-05-12Allow the use of a custom loop instead of asyncio.get_event_loop()mathieui
2015-05-06Make syntax highlighting for XML lazy, to only call pygments when debug logs ↵Emmanuel Gil Peyrot
are enabled. Makes poezio about 11% faster when sending/receiving messages.
2015-04-04XMLStream: add a forever parameter to process(), defaulting to True, to ↵Emmanuel Gil Peyrot
select whether we want to stop the event loop after a disconnection
2015-03-02XMLStream: factorize the highlight function so it can be used in tests as wellEmmanuel Gil Peyrot