summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream/xmlstream.py
AgeCommit message (Collapse)Author
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-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-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-08-12Provide domain name to loop.create_connection if using SSL.Gasper Zejn
2015-09-25Reset the DNS answers after a connection is made succesfullymathieui
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-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
2015-02-28Set XMLStream.socket after the SSL connection is made toomathieui
Fixes SCRAM-SHA-1-PLUS.
2015-02-23Add back stanza-specific exception handlersmathieui
(fixes the test suite too)
2015-02-22Use CallbackCoroutine with Iq callbacks toomathieui
2015-02-22Allow event handlers to be coroutine functionsmathieui
And do not copy data when running events with XMLStream.event()
2015-02-17Check that ciphers have been initializedmathieui
(if not, python will use the system default)
2015-02-04XMLStream must provide the BaseProtocol interfaceFlorent Le Coz
2015-01-03Do not copy the stanza before calling each handlerexp_idle_callFlorent Le Coz
2015-01-03Delay the handling of stanza for when the process is not busyFlorent Le Coz
We use some dirty monkey-patching to add a idle_call() function to the asyncio module. We then use that method to handle each received stanza only when the event loop is not busy with some other IO (mainly, the standard input)
2014-12-17Make the ca_certs option useful again (CA-based cert validation)mathieui
It was broken since the fork.
2014-12-11Bring back authentication through SASL EXTERNALmathieui
(and only update the ssl context before it gets used)
2014-11-12Let loop.create_connection do its getaddrinfo coroutine if there are no dns ↵mathieui
records left/available
2014-11-02Fix default value of dns_answers to None (instead of [])Florent Le Coz
2014-11-02Use aiodns instead of dnspython to query DNS recordsmathieui
2014-10-30Add the ssl_cert and ssl_invalid_chain backmathieui
- hack the stdlib to get the peercert, remove that hack when http://bugs.python.org/issue22768 gets fixed
2014-10-30Make the "ciphers" option work againmathieui
2014-10-30Remove the ssl_version option, as the defaults in python3.4 are sanemathieui
2014-09-01Reintroduce XMLStream.process, making it run the asyncio event loop.Emmanuel Gil Peyrot
2014-09-01Add pygments support to debug output.Emmanuel Gil Peyrot
2014-09-01Remove sys.version_info checks for python2 and clean some imports.Emmanuel Gil Peyrot
2014-08-01Add the 'connecting' eventFlorent Le Coz
2014-07-30Fix the connection (and a few minor things) in xmlstreamFlorent Le Coz
2014-07-23And thatFlorent Le Coz
2014-07-23Forgot to remove thatFlorent Le Coz
2014-07-23Cleanup how events are run, they are always direct by definition nowFlorent Le Coz
2014-07-22Use ".remove()" instead of "is in" followed by ".pop()"Emmanuel Gil Peyrot
2014-07-22An other cleanup of xmlstream.pyFlorent Le Coz
Remove some useless things (like handling signals, managing the threads, etc), add some comment to recently added/fixed methods…
2014-07-22Remove unused RestartStream exceptionFlorent Le Coz
2014-07-21Remove the now useless state machineFlorent Le Coz