summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
AgeCommit message (Collapse)Author
2012-06-20Fix setting IPv6 default configuration option.Lance Stout
2012-06-20Make the use of IPv6 configurable.Lance Stout
Set self.use_ipv6 = False before connecting. Fixes issue #175
2012-06-19Allow message and presence stanzas to be embedded as substanzas.Lance Stout
2012-06-19Remove usage of deprecated getchildren() method.Lance Stout
2012-06-19PEP8 formatting updates.Lance Stout
2012-06-19Properly handle certs with no extensions.Lance Stout
2012-06-18Enable using xml:lang with normal interfaces.Lance Stout
Using the special language value '*' will return a dictionary of all such elements keyed by language. >>> msg = Message() >>> msg['body'] = 'Hi!' >>> msg['body|sv'] = 'Hej!' >>> print(msg) '<message xmlns="jabber:client"> <body>Hi!</body> <body xml:lang="sv">Hej!</body> </message>' >>> print(msg['body|*']) OrderedDict( ('', 'Hi!'), ('sv', 'Hej!')) Remaining items: - Stanza path matching does not support language specifiers for normal interfaces, only for plugins.
2012-06-18Add initial support for xml:lang for streams and stanza plugins.Lance Stout
Remaining items are suitable default actions for language supporting interfaces.
2012-06-15Ensure that ssl_invalid_cert returns PEM formatted certifcate data.Lance Stout
2012-06-13Prevent duplicate certificate expiration timers.Lance Stout
2012-06-09Add extra check for the cert in the expiration handler.Lance Stout
2012-06-09Fix SSL handshake handling when not using legacy SSL.Lance Stout
Fixes issue #172
2012-06-09Ensure that all SSL cert error handling is overridable using event handlers.Lance Stout
Relevant events: ssl_invalid_cert ssl_invalid_chain ssl_expired_cert
2012-06-04Don't add cert expiration timer if no certs are being used.Lance Stout
2012-06-01Fix syntax error in line continuation.Lance Stout
2012-06-01Check that the session is still alive before sending data.Lance Stout
Fixes issue #168
2012-05-31Preemptively mark threads as exited if calling disconnect().Lance Stout
2012-05-27Handle not being able to connect using IPv6 if the host does not support it.Lance Stout
2012-05-22Add better certificate handling.Lance Stout
Certificate host names are now matched (using DNS, SRV, XMPPAddr, and Common Name), along with expiration check. Scheduled event to reset the stream once the server's cert expires. Handle invalid cert trust chains gracefully now.
2012-05-17Remove unused xmlstream test client.Lance Stout
It's in the repo history if we need it later.
2012-05-10Make the error message better regarding hanged threads.Lance Stout
All event handlers which call disconnect() MUST be registered using `add_event_handler(..., threaded=True)` in order to prevent temporarily deadlocking until a timeout occurs. This is required because disconnect() waits for the main threads to exit before returning, including the event processing thread. Since handlers registered without `threaded=True` run in the event processing thread, the disconnect() call will deadlock.
2012-05-06Windows doesn't support inet_pton.Lance Stout
2012-05-05Tidy up and add tests for multi_attrib plugins.Lance Stout
2012-04-30added multifactory and support for it to register_stanza_pluginErik Larsson
2012-04-29Add logging note about potential cause of disconnect() deadlock.Lance Stout
2012-04-29Set a timeout when waiting for threads.Lance Stout
If calling disconnect() from a non-threaded event handler, deadlock can happen as disconnect() is waiting for threads to close, but the event runner is blocked by a handler waiting for disconnect() to return. It is best to specify threaded=True for event handlers which may call disconnect().
2012-04-25Use provided stanza ID.Lance Stout
2012-04-24Ensure that SSL errors are handled in Py3.3Lance Stout
2012-04-22Track threads to ensure all have exited when disconnecting.Lance Stout
2012-04-21Count and track the main threads, so we can delay disconnecting until all ↵Lance Stout
have quit.
2012-04-20Add _use_daemons flag to XMLStream to run all threads in daemon mode.Lance Stout
This WILL make the Python interpreter produce exceptions on shutdown.
2012-04-14Handle using provided weakrefs as stanza parent references.Lance Stout
Fixes issue #159
2012-04-13Check for the stop event more aggressively in the send thread.Lance Stout
2012-04-10Fix DNS resolution results for IP literals.Lance Stout
2012-04-08Add a prefix to stanza ID values to ensure that they are unique per client.Lance Stout
2012-04-06Correct the statemachine's ensure_any method.Lance Stout
It had not been updated to use the new condition instead of the old threading event.
2012-04-06Add default mapping of localhost to ::1 and 127.0.0.1Lance Stout
2012-04-01Display IPv6 literal addresses in brackets.Lance Stout
2012-03-30Improve connection handling by not delaying until all DNS records are tried.Lance Stout
2012-03-30Add better DNS resolver wrapper.Lance Stout
2012-03-28Fix sending data after </stream>Lance Stout
Clearing the session_started_event before sending </stream> will pause the send loop so that we don't continue sending data after the </stream>.
2012-03-27Improve handling disconnections.Lance Stout
- Add option for disconnecting without sending </stream>: self.disconnect(send_close=False) - Optionally distinguish between session_end and disconnected based on if </stream> was sent. self.end_session_on_disconnect = False
2012-03-27Add support for a new type of stanza interface: boolLance Stout
The set of bool_interfaces provides default behaviour for checking/setting the presence of empty subelements. The prime example of this would be: bool_interfaces = set(['required']) This would mean that ``stanza['required']`` would return ``True`` for: <stanza> <required /> </stanza> and ``False`` for: <stanza /> Likewise, assigning ``stanza['required'] = True`` would add an empty ``<required />`` element, and setting it to ``False`` would remove such an element if it exists.
2012-03-27Simplify sending whitespace keepalives.Lance Stout
Now that we have the send lock, we can use now=True.
2012-03-21Correct handling of acks for XEP-0198 under heavy load.Lance Stout
2012-03-21Respect reattempt=False setting when reconnecting.Lance Stout
2012-03-20Correct connect() documentation, don't delay attempts if reattempt=False.Lance Stout
See issue #152
2012-03-18Add out_sync filter category.Lance Stout
Added option to XMLStream.send() to skip applying filters. Filters in the out_sync group are synced with placing stanza content either on the wire directly or into the send queue. Because of this, out_sync filters should not block.
2012-03-12Add setting for maximum number of reconnection attempts.Lance Stout
Setting self.reconnect_max_attempts to a non-None value will limit the number of times a connection attempt will be made before quiting and raising a 'connection_failed' event.
2012-03-07Modify the cert event to provide the PEM encoded cert in all cases.Lance Stout