Lance Stout
597eb1779c
Fix other instance of inet_pton usage.
2012-12-29 15:17:15 -08:00
Lance Stout
8b29900be4
Fix some Python3 compatibility issues.
2012-12-14 09:37:29 -08:00
Lance Stout
2a4e435228
Enable gevent support.
...
Closes issues #166 and #167
Thanks to @pvicent, @chason, and @gabriel-samfira
2012-10-24 01:20:23 -07:00
Lance Stout
d367fb938d
Recognize plugin stanzas when they're appended.
2012-10-18 12:26:17 -07:00
Lance Stout
4190027a78
Prevent xmlns="" in stream output.
...
This was causing problems for HTML-IM because the HTML is parsed
without a namespaced context.
While xmlns="" technically can be valid, it's usually wrong, so this will work
for now until the HTML-IM parsing is fixed.
2012-10-15 22:22:07 -07:00
Lance Stout
e2e8c4b5dc
Remove unneeded ssl_support checks.
2012-10-10 11:42:24 -07:00
Lance Stout
675c0112ac
Correct handling deleting plugins when xml:lang is active.
2012-10-10 11:07:25 -07:00
Lance Stout
098714b3c4
Unclobber connected event handler names.
...
Fixes issue #199
2012-10-02 09:25:30 -07:00
Lance Stout
94488fa2ea
Expand warning for missing ASN1 parser to include pyasn1_modules
2012-09-30 17:14:45 -07:00
Lance Stout
f6e1fecdf8
Add Collector stanza handler class.
...
This style of handler is necessary for capturing result sets from
queries that use multiple messages to send the results instead of
in a single result stanza. Notably, XEP-0313 (MAM).
2012-09-25 20:20:22 -07:00
Lance Stout
671f680bb3
Add support for XEP-0280 Message Carbons
2012-09-25 02:34:51 -07:00
Lance Stout
a4abdf9fa6
Fix deleting non-existent stanza plugins.
2012-09-24 21:00:23 -07:00
Lance Stout
6c57bb0553
Simplify stringifying XML
2012-09-24 20:59:51 -07:00
Lance Stout
c2ae1ee891
Remove race condition when aborting while connecting/reconnecting.
2012-09-18 10:35:53 -07:00
Lance Stout
fb3e6b7e35
Don't break checking certs for localhost.
2012-09-13 11:00:29 -07:00
Florian Fieber
e510875f64
Fix certificate expiration scheduler
...
timedelta.seconds does not store the total seconds of a time span.
Internally, seconds is the next smaller unit to days, hence
timedelta.seconds will never exceed (or reach) the number of seconds
in a day (60*60*24=86400)
2012-08-23 00:22:22 -07:00
Lance Stout
c6ac64ed2d
Help prevent race condition dealing with auto_reconnect
2012-08-14 09:54:38 -07:00
Lance Stout
f7a710e55b
Add abort() method to kill the session and stop all processing without properly closing the stream.
2012-08-10 14:12:05 -07:00
Lance Stout
4e12e228cb
Fix tracking service name for DIGEST-MD5
2012-08-10 12:40:28 -07:00
Lance Stout
aebcf6ff82
Re-add connection delay after exhausting DNS records.
2012-08-07 01:38:15 -07:00
Lance Stout
8c2ece3bca
Ensure self._der_cert exists even if no certs are used.
2012-08-04 21:37:46 -07:00
Lance Stout
80a90a6221
Prevent auto_reconnect interference when disconnecting.
2012-08-04 21:10:45 -07:00
Lance Stout
167d1ce97b
Add fields for setting client cert and key for SASL EXTERNAL.
2012-07-30 19:15:10 -07:00
Lance Stout
422e77ae40
Don't wait to retry connection if out of DNS records.
2012-07-29 17:26:04 -07:00
Jonas Wielicki
e3fab66dfb
Allow tasks to remove themselves during execution
...
The scheduler class is now capable with dealing with tasks which remove
themselves from the scheduler during execution.
Additionally, some optimizations were applied by use of iterators and
some functions better suited for the purpose.
Please peer-review, all tests pass.
2012-07-27 10:45:23 -07:00
Lance Stout
98b7e8b10a
Fix initializing plugins in stanzas with a language set.
2012-07-25 01:33:17 -07:00
Lance Stout
9a08dfc7d4
Add support for using CDATA for escaping.
...
CDATA escaping is disabled by default, but may be enabled by setting:
self.use_cdata = True
Closes issue #114
2012-07-24 03:25:55 -07:00
Lance Stout
3e43b36a9d
Standardize importing of queue class.
...
This will make it easier to enable gevent support.
2012-07-24 02:39:54 -07:00
Lance Stout
d06897a635
Add backwards compatibility shim for the old jid.py location.
2012-07-24 01:43:20 -07:00
Lance Stout
e4e18a416f
Add validation for JIDs.
2012-07-24 01:43:20 -07:00
Lance Stout
917faecdcb
Fix issue of roster data being split across multiple rosters.
...
Resolved by always normalizing JIDs to bare form, regardless of if they
are JID objects or strings.
Also simplified related code to prefer use of JID objects instead of
strings so they don't need to be parsed multiple times.
2012-07-19 23:54:18 -07:00
Lance Stout
51fee28bf4
Add a warning log if dnspython is not found for SRV lookup.
...
Closes issue #183
2012-07-16 19:38:50 -07:00
Lance Stout
5df3839b7a
Add method to remove a filter.
2012-07-10 01:37:23 -07:00
Lance Stout
99701c947e
Prevent None from being added to the schedule from a timing issue.
2012-07-09 22:59:26 -07:00
Jay Farrimond
88b5e60807
only log cert errors if not handled by user
2012-07-05 13:38:26 -07:00
Lance Stout
100e504b7f
Resolve xml:lang issue with duplicated elements depending on ordering.
2012-06-22 18:19:17 -07:00
Lance Stout
1ad171dfe5
Fix issue with setting subelements values with default langs.
2012-06-20 23:19:52 -07:00
Lance Stout
2a78570d65
Fix setting IPv6 default configuration option.
2012-06-20 22:21:34 -07:00
Lance Stout
e86444e5fb
Make the use of IPv6 configurable.
...
Set self.use_ipv6 = False before connecting.
Fixes issue #175
2012-06-20 19:39:24 -07:00
Lance Stout
433ee08687
Allow message and presence stanzas to be embedded as substanzas.
2012-06-19 16:20:54 -07:00
Lance Stout
7858d969d8
Remove usage of deprecated getchildren() method.
2012-06-19 09:47:31 -07:00
Lance Stout
d92aa05b5c
PEP8 formatting updates.
2012-06-19 01:29:48 -07:00
Lance Stout
534aaf2b2a
Properly handle certs with no extensions.
2012-06-19 00:01:02 -07:00
Lance Stout
f824950552
Enable using xml:lang with normal interfaces.
...
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-18 22:00:33 -07:00
Lance Stout
181aea737d
Add initial support for xml:lang for streams and stanza plugins.
...
Remaining items are suitable default actions for language supporting
interfaces.
2012-06-18 22:00:33 -07:00
Lance Stout
a08c2161a7
Ensure that ssl_invalid_cert returns PEM formatted certifcate data.
2012-06-15 15:29:53 -07:00
Lance Stout
c39ad7dfbb
Prevent duplicate certificate expiration timers.
2012-06-13 09:13:33 -07:00
Lance Stout
6cfb5cb14c
Add extra check for the cert in the expiration handler.
2012-06-09 11:01:45 -07:00
Lance Stout
4b37a4706f
Fix SSL handshake handling when not using legacy SSL.
...
Fixes issue #172
2012-06-09 11:01:11 -07:00
Lance Stout
7b1564947d
Ensure that all SSL cert error handling is overridable using event handlers.
...
Relevant events:
ssl_invalid_cert
ssl_invalid_chain
ssl_expired_cert
2012-06-09 11:00:55 -07:00