Commit graph

372 commits

Author SHA1 Message Date
Yann Leboulanger
483ccdf35a use isinstance instead of type. fixes #2680 2006-11-19 23:55:06 +00:00
Tomasz Melcer
d9d5f5a841 Fixed last fix. 2006-11-18 21:04:24 +00:00
Tomasz Melcer
4b97eddee4 Comparing types: type(x)==type(self) => isinstance(x, self.__class__) 2006-11-18 21:01:41 +00:00
Tomasz Melcer
175a792cfe Merging changes from trunk (6774:7465) 2006-11-18 20:52:28 +00:00
Tomasz Melcer
68703a1d5d 'Server' part switched to use new forms. 2006-11-18 18:39:02 +00:00
junglecow
3c77ffd406 [PyOpenSSL branch]
- Close connection after creating account. Fixes #2676
- Handle normal connection close by server. Fixes #2671
- Do not disconnect if we haven't received starttag yet. Fixes #2668. Fixes unticketed bug causing account creation not to work with PyOpenSSL and asynchronous handshake (see also #2671). Behaviour of #2634 is also improved but now results in deadlock.
2006-11-18 15:09:40 +00:00
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
Stefan Bethge
27849fc3d7 fix #2586, cleanup 2006-11-10 20:43:23 +00:00
Stefan Bethge
bf69759900 fix #2649 2006-11-06 22:47:25 +00:00
Stefan Bethge
745434fdab give error messages when local message could not be sent, see #2586 2006-11-06 21:30:39 +00:00
Tomasz Melcer
289928050c Reworked dataforms, not finished yet. 2006-11-06 12:23:39 +00:00
Dimitur Kirov
59b6ae468a merge from trunk
automake based instalation
2006-10-04 00:10:49 +00:00
Dimitur Kirov
5fc8cf20f3 merge from trunk 2006-09-26 15:57:47 +00:00
Dimitur Kirov
57779a6ad3 drop connection after certain time of
inactivity
set timout on connect attempts
transleted russian comment
2006-09-20 11:01:47 +00:00
Dimitur Kirov
da309569e3 add possibility to overide StremInit by _owner 2006-09-19 15:14:53 +00:00
Dimitur Kirov
e9a855007b better xmmpppy plugin integration.
fixed xml error with iChats
2006-09-19 12:46:09 +00:00
Dimitur Kirov
1a325833c3 add listening server for incomming messages 2006-09-17 22:57:41 +00:00
Stefan Bethge
2b3120244f merged trunk r6780
removed i18n imports from zeroconf/connection files
2006-09-14 16:48:03 +00:00
Tomasz Melcer
9b29c4c8b8 Merging changes from trunk (6561:6774) 2006-09-13 16:47:58 +00:00
Tomasz Melcer
585ab90e92 Merging changes from trunk (6496:6561) 2006-07-17 19:30:53 +00:00
Tomasz Melcer
c75bdcb63c Ad-Hoc commands window now uses new dataform wrapper. /me dances 2006-07-07 15:49:44 +00:00
Yann Leboulanger
59c3b7b3c8 JEP 172 support (user nickname) Fixes #464 and #884 2006-06-01 15:23:38 +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
9c37887ea0 handle challenge response multiple qops: #1907 2006-04-30 17:33: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
2fa30b7e1e use realm from first challenge response 2006-04-08 15:58:50 +00:00
Dimitur Kirov
6556d01cbe change(s) from xmpppy 2006-04-08 15:39:37 +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
114264ca13 stop if Process has return 0, meaning that it
closed the connection
2006-03-29 23:33:17 +00:00
Dimitur Kirov
a9622c9a09 EISCONN shows that connection is already
established
2006-03-27 15:19:17 +00:00
Yann Leboulanger
ff7eb2356a handle correctly when server return answer to register request when we create a new account. Fixes #1725 2006-03-27 09:53:47 +00:00
Yann Leboulanger
bdda6d1555 show correct error message when we fail to create an account. See #1725 2006-03-26 23:42:36 +00:00
Dimitur Kirov
b3de43ae3f disconnect after stream end tag, unregister
two more handlers
2006-03-16 17:29:30 +00:00
Dimitur Kirov
d316c6d8b4 reconnect (if configured), instead of
disconnect on expat error
2006-03-15 20:46:50 +00:00
Dimitur Kirov
7afb58426a property last_connection, used to prevend
double connections
2006-03-15 20:10:52 +00:00
Dimitur Kirov
032ed4f22c typo 2006-03-15 19:47:11 +00:00
Dimitur Kirov
5e19b20377 return unregister attemped on undefined
namespace handlers
2006-03-15 19:43:22 +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
Yann Leboulanger
4cbc0666ff show an error dialog when a transport answers wrongly to register request. Fixes #1702 2006-03-15 08:56:36 +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
Yann Leboulanger
d3417371c0 clear _expected dict when callback is called. This way when another stanza arrives with the same id, it isn't catched as expected. 2006-03-05 20:30:38 +00:00
Nikos Kouremenos
0349c4ad23 fix typo 2006-03-05 19:43:41 +00:00
Yann Leboulanger
d54915c62a base64.encodestring() adds some \n in the string. Remove it 2006-03-05 19:39:07 +00:00
Dimitur Kirov
810a377156 added TODO, ensure we close all descriptors 2006-02-27 16:26:00 +00:00
Dimitur Kirov
acdb712838 remove FORM FEED and ESC from sent data 2006-02-22 13:09:33 +00:00