Anton Ryzhov
7c03cc622c
Thread counting fix
2014-01-21 19:28:17 +04:00
Lance Stout
12995e280e
Merge pull request #270 from optiflows/fix_hosts
...
Don't use dnspython for A and AAAA (but keep it for SRV).
2014-01-15 09:51:43 -08:00
Lance Stout
4ae6d44efc
Allow setting custom cipher suites in Py2.7+
2014-01-13 10:14:10 -08:00
Lance Stout
df9ad82336
Undo event name fix, due to breakage in Py2.x
2013-12-22 01:10:19 -08:00
Florent Le Coz
820d07f309
Use strings for ElementTree.iterparse events names
...
Because if cElementTree is not available on the system,
ElementTree is used instead, and that version doesn't accept
bytes, resulting in an exception. See
http://bugs.python.org/issue9257#msg152864
2013-12-19 11:47:31 +01:00
Guilhem Lettron
f4e3c04bbf
Don't use dnspython for A and AAAA (but keep it for SRV).
...
dnspython don't perform a full resolv.
For example it don't manage /etc/hosts on linux.
2013-12-09 15:44:35 +01:00
Lance Stout
b8b2f37e7b
Make the ssl version log usable
2013-09-17 16:37:52 -07:00
Lance Stout
ad7a57103d
ElementTree._escape_cdata isn't reliable across Python versions.
...
It also does not work as desired.
Revert "Merge pull request #254 from barreverte/develop"
This reverts commit 23750357e2
, reversing
changes made to 07284f380f
.
2013-09-12 10:39:10 -07:00
Jean-Philippe Caruana
b6e53c7b1b
escape: use xml.etree.ElementTree._escape_attrib to avoid duplication
2013-07-31 11:02:10 +02:00
Jean-Philippe Caruana
1c3bfd949b
escape: imports at the top
2013-07-31 11:02:06 +02:00
Jean-Philippe Caruana
c02adbb8e1
tostring.escape : optimization
...
use of xml.etree.ElementTree._escape_attrib and xml.etree.ElementTree._escape_cdata
2013-07-30 18:51:23 +02:00
Alexander Shorin
556e4bd74d
Don't resolve AAAA records if there is no dnspython nor IPv6 support
...
If system doesn't has IPv6 support or dnspython package, socket.getaddrinfo
with AF_INET6 flag return weird IP info for requested host, making SleekXMPP
crush with more weird error.
2013-07-29 14:21:46 +04:00
Jake Basile
cc81a0e8da
DRYed up the OSError/socket.gaierror handler.
2013-07-18 13:07:25 -05:00
Jake Basile
262652992d
Caught OSError when querying AAAA records.
2013-07-18 08:25:28 -05:00
Anton Ryzhov
f12c241dca
Blocking queue get
2013-07-01 10:30:43 +04:00
Lance Stout
669e708b70
Fix import error
2013-06-23 18:24:35 -07:00
Lance Stout
37a8043202
Merge pull request #244 from anton-ryzhov/speedup
...
Speedup main threads loops
2013-06-20 09:21:38 -07:00
Anton Ryzhov
a3606d9e4d
Fixed scheduler wait loop
...
Do fastloop wait until task run time
2013-06-20 18:30:07 +04:00
Anton Ryzhov
805f1c0e39
Use timeout constants instead of magic numbers in scheduler and event loop
...
Set default wait timeout as max() of previous values
2013-06-20 18:30:07 +04:00
Anton Ryzhov
7430a8ca40
Some optimizations in scheduler
2013-06-20 18:30:07 +04:00
Anton Ryzhov
1776e2edcc
Skip EINTR errors on raw sockets
2013-06-20 18:29:53 +04:00
Lance Stout
60cfab995f
Try preventing strptime thread safety problems.
...
Fixes #231
2013-04-27 03:56:20 -07:00
Lance Stout
8ec18bdb2c
Carry scheduled kwargs all the way
2013-04-23 11:09:04 -07:00
Lance Stout
7ac75de19d
Make XMLMasks match properly for components.
2013-04-01 20:57:16 -07:00
Anton Ryzhov
020197718f
Event index documentation updated
2013-03-28 22:09:33 +04:00
Anton Ryzhov
a0c77c04a5
XMLStream proxy_error
event duplicated with connection_failed
...
SASL `no_auth` event duplicated with `failed_auth`
2013-03-28 22:09:33 +04:00
Anton Ryzhov
01356d23e5
Log events triggering
2013-03-28 20:44:37 +04:00
Lance Stout
82bbe5d1a6
Merge branch 'develop'
2013-02-25 09:53:35 -08:00
Anton Ryzhov
d9906756cf
Don't use internally deprecated methods
2013-02-22 01:48:03 +04:00
Lance Stout
d8c9662302
Resolve most Python3.3 related issues.
...
Tests now run successfully. Occasionally get single error related to
duplicated payload data in pubsub items when copying stanza values.
2013-02-14 01:24:09 -08:00
Lance Stout
23f112602c
Get tests to pass again.
...
Re-add old gmail_notify plugin for now.
2013-01-26 15:15:01 -08:00
Lance Stout
403b1802ec
Update tostring to inject xmlns definitions when needed.
2013-01-24 02:43:46 -08:00
Lance Stout
93b8e66b5d
Remove unused portions of XMLMask
2013-01-20 16:24:50 -08:00
Lance Stout
ccf7916257
Allow for simplified XPath namespaces
2013-01-20 15:43:02 -08:00
Lance Stout
ce977a7809
Don't reset exponential backoff delay until a stream has been confirmed.
2013-01-11 17:18:58 -08:00
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