Commit graph

122 commits

Author SHA1 Message Date
junglecow
321020751d Bugfix 2006-11-14 06:39:08 +00:00
junglecow
be1b58aa79 Handle OpenSSL.SSL.SysCallError 2006-11-13 22:17:16 +00:00
junglecow
4617618463 Removing all calls to sys.exc_clear(). This is only necessary in very rare circumstances, and if there is such a circumstance, it should be clearly documented in code. 2006-11-13 15:07:47 +00:00
junglecow
9e3e14dd78 Fixed a bug in compatibility code 2006-11-13 14:44:17 +00:00
junglecow
c5ffc7bf5d - Added support for PyOpenSSL (with fallback to old library if not found)
- Also added a wrapper for cleaner compatibility handling of old SSL library
- Changed exception handling to be more precise. (Catching Exception. Ish.)
- Added lots of debug printing

You will need to install pyopenssl (Debian unstable: python-pyopenssl) to try this.
2006-11-13 14:24:41 +00:00
Dimitur Kirov
873bedd221 escape from sslerror due to broken protocol 2006-07-26 12:49:11 +00:00
Dimitur Kirov
f9e874a1a3 make sure NBClientCommon, dispatcher and
NodeBuilder are callected when we close the
connection
2006-05-03 16:12:10 +00:00
Dimitur Kirov
9768940b3a show connect failure dialog when Unhandled data
is received (wrong protocol)
2006-04-15 09:43:15 +00:00
Dimitur Kirov
71314f2b08 don't try to reconnect if socket was never
connected
2006-04-08 00:30:33 +00:00
Dimitur Kirov
a9622c9a09 EISCONN shows that connection is already
established
2006-03-27 15:19:17 +00:00
Dimitur Kirov
b3de43ae3f disconnect after stream end tag, unregister
two more handlers
2006-03-16 17:29:30 +00:00
Dimitur Kirov
c8b27da04f don't disconnect after server inabillity to
receive long data. Unregister all handlers in
disconnect
2006-03-15 19:39:27 +00:00
Dimitur Kirov
59283050e1 close connection when invalid xml is received
call sys.exc_clear in catched exceptions
2006-03-10 20:36:15 +00:00
Dimitur Kirov
bc7d9a2943 clean last exception to prevent printing TB
( #1629 )
2006-03-07 11:54:45 +00:00
Dimitur Kirov
810a377156 added TODO, ensure we close all descriptors 2006-02-27 16:26:00 +00:00
Dimitur Kirov
eacf5fb900 revert to self.DEBUG when SASL is not supported 2006-02-18 00:01:39 +00:00
Dimitur Kirov
7576bb4f3e shutdown the reading and writing side of the
socket and close it, when we disconnect
2006-02-12 02:21:18 +00:00
Dimitur Kirov
81873919c5 remove error debug statement,use stderr instead
isinstance, instead of __class__.__name__
2006-02-11 21:49:17 +00:00
Dimitur Kirov
19ee5917bf try to reconnect when socket error
is raised during data receiving
2006-02-11 21:30:04 +00:00
Dimitur Kirov
f52144c803 socks5 classes now use Gajim idlequeue
still there are several TODOs
2006-02-06 00:11:45 +00:00
Dimitur Kirov
ec1d354c80 use old select.select for polling on win-gtk2.8
untill there is a stable 2.8 version
2006-02-03 22:54:05 +00:00
Dimitur Kirov
f62db4acfe Switched to non-blocking connections.
Removed threads and mutexes in connection.py
and gajim.py.
Add resolver through nslookup command, removed
dnspython and pydns (for now).
2006-02-03 12:17:34 +00:00