Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-11-08 | Don't just call self.disconnect in self.reconnect. | Lance Stout | |
It messes up the auto_reconnect value and causes the XML processing loop to spin wildly with errors on a stream disconnect. | |||
2011-11-07 | Continue trying to reconnect, even if the attempt fails. | Lance Stout | |
The transition from disconnected to connected states must be done in a loop in case the transition fails, not just once and hope it worked. | |||
2011-10-08 | Break reference cycle to fix potential memory leaks for callback handlers. | Lance Stout | |
2011-09-23 | Fix del_event_handler for Python3 (different semantics for filter()). | Lance Stout | |
Fixes issue #103 | |||
2011-09-22 | Fix regression for handling the case where the server terminates the stream. | Lance Stout | |
The processing loop was continuing to call __read_xml after </stream> was received, which caused SyntaxErrors (can't find starting element). This should fix issue #102 | |||
2011-09-19 | SyntaxError requires a restart | Nathan Fritz | |
2011-09-01 | Add whitespace keepalive option.sleek-1.0-RC21.0-RC2 | Lance Stout | |
May be disabled by setting: self.whitespace_keepalive = False The keepalive interval can be adjusted using: self.whitespace_keepalive_interval = 300 The default interval is 5min. | |||
2011-09-01 | Fix memory reference bugs. | Lance Stout | |
2011-08-25 | Simplify the main process loop. | Lance Stout | |
2011-08-25 | Make the timeout for event queue checks configurable. | Lance Stout | |
Now defaults xmlstream.WAIT_TIMEOUT, and settable with self.wait_timeout. The new default timeout is 1sec instead of 5sec. | |||
2011-08-25 | Added XMLStream.configure_dns. | Lance Stout | |
This can be overridden to do custom configuration for the DNS resolver, or any other DNS related tasks such as calling the system's res_init(). | |||
2011-08-25 | Session timeout now defaults to 45sec, but can be adjusted. | Lance Stout | |
e.g. self.session_timeout = 15 It is also managed by XMLStream instead of ClientXMPP now. | |||
2011-08-25 | Handle sending stanzas in chunks if the socket has poor performance. | Lance Stout | |
2011-08-25 | Shutdown socket before closing. | Lance Stout | |
2011-08-25 | Update scheduler with locks and ability to remove tasks. | Lance Stout | |
Scheduled tasks must have a unique name. | |||
2011-08-25 | Add overridable method self.configure_socket(). | Lance Stout | |
Allows for setting app specific socket timeouts and other socket options. | |||
2011-08-24 | Fix handling of DNS exceptions. | Lance Stout | |
2011-08-18 | Route all unhandled exceptions through XMLStream.exception. | Lance Stout | |
Or through an equivalent override. | |||
2011-08-18 | PEP8 edits | Lance Stout | |
2011-08-18 | Up the timeout to 30sec instead of 10sec. | Lance Stout | |
2011-08-18 | added inline documentation for new dns methods | Nathan Fritz | |
2011-08-18 | Fix exceptions for Python3 | Lance Stout | |
2011-08-18 | DNS is now properly checked and different answers are tried for each ↵ | Nathan Fritz | |
reconnect until exhausted | |||
2011-08-13 | I've seen people complain about Sleek taking so long to disconnect. | Lance Stout | |
Added logging to say that we're waiting for the server to end the stream from its end. | |||
2011-08-12 | Reduce the maximum delay between connection retries to 10min. | Lance Stout | |
2011-08-04 | Cosmetic PEP8 fixes. | Lance Stout | |
2011-08-04 | Fix Python3 issue with dict.has_key() | Lance Stout | |
2011-08-04 | added block as process option and updated documentation. added typical use ↵ | Nathan Fritz | |
example to ClientXMPP. | |||
2011-08-04 | Clean up and unify tostring once and for all. | Lance Stout | |
Packaging for Python3 just got easier. | |||
2011-08-03 | Merge branch 'develop' into stream_features | Lance Stout | |
2011-08-03 | Merge branch 'develop' into stream_features | Lance Stout | |
2011-07-27 | Add support for HTTP Proxy connections. | Lance Stout | |
2011-07-04 | Added wait parameter to disconnect. | Lance Stout | |
If wait=True, then the disconnect call will block until the send queue has emptied. WARNING: Using wait=True when more stanzas are being added to the queue than can be processed such that the queue is never empty will cause the disconnect call to block indefinitely without actually disconnecting. | |||
2011-07-01 | Merge branch 'develop' into stream_features | Lance Stout | |
2011-07-01 | So using sys.excepthook to catch errors only works once. | Lance Stout | |
The error bubbles through the event processing loop, breaking it and hanging the application. Instead, there is now a .exception(e) method on XMLStream which may be overridden or reassigned that will receive all unhandled exceptions (read: not XMPPError) from event and stream handlers. | |||
2011-06-20 | Merge branch 'develop' into stream_features | Lance Stout | |
2011-06-20 | Fix stanza clobbering when replying to errors.sleek-1.0.0-beta5sleek-1.0-Beta51.0.0-beta51.0-Beta5 | Lance Stout | |
If a stanza handler raised an exception, the exception was processed and replied by the modified stanza, not a stanza with the original content. A copy is now made before handler processing, and if an exception occurs it is the copy that processes the exception using the original content. | |||
2011-06-10 | Merge branch 'develop' into stream_features | Lance Stout | |
2011-06-08 | Added session_end event and some docs. | Lance Stout | |
For now, session_end is the same as disconnected, but once support is added later for stream management, the two events will become distinct. Plugins should add handlers for session_end for cleaning any session state. | |||
2011-06-01 | Merge branch 'develop' into stream_features | Lance Stout | |
2011-06-01 | Cache stanza if sending fails. | Lance Stout | |
The stanza will be sent first once the send queue is reactivated after session start. Stanzas sent by skipping the queue will not be cached. | |||
2011-05-31 | Merge branch 'develop' into stream_features | Lance Stout | |
Conflicts: sleekxmpp/clientxmpp.py | |||
2011-05-31 | Apply connection backoff to reconnect attempts. | Lance Stout | |
Backoff was only being done for the initial connection attempt before. Now any reconnection will start with a minimum 1 sec delay which will approximately double between attempts. | |||
2011-05-31 | Cleanup logging and exception handling. | Lance Stout | |
The syntax and attribute errors raised during a disconnect/reconnect attempt are now caught and produce nicer log messages. | |||
2011-05-27 | Don't use the send queue for stream initialization. | Lance Stout | |
Use the parameter now=True to skip the queue when sending Iq stanzas, or using xmpp.send(). | |||
2011-05-27 | Fix typo for SSL certificate use. | Lance Stout | |
2011-05-27 | Add exponential backoff to connection attempts. | Lance Stout | |
Delay will approximately double between attempts (random variation). See issue #67. | |||
2011-05-27 | Added support for testind disconnect errors. | Lance Stout | |
2011-05-20 | Merge branch 'develop' into stream_features | Lance Stout | |
2011-05-20 | Fix double roster entry issue with Unicode. | Lance Stout | |
JIDs with Unicode values were being encoded by the JID class instead of leaving them as just Unicode strings. It may still be a good idea to use from __future__ import unicode_literals pretty much everywhere though. Fixes issue #88. |