Commit graph

72 commits

Author SHA1 Message Date
Yann Leboulanger
f0a0929d5c merge XEP-0198 implementation from gajim-XEP-198 branch to trunk. Thanks Jefry for your work during GSOC 2011-08-22 09:45:51 +02:00
Jefry Lagrange
b8aa518592 whitespaces aren't added to the SM queue 2011-06-13 22:37:29 -04:00
Jefry Lagrange
985746d65a only resume when disconnected not on purpose 2011-06-11 16:29:08 -04:00
Jefry Lagrange
39a960f3e7 keeps old status after disconnection 2011-06-07 23:50:45 -04:00
Jefry Lagrange
7194260f98 connects when server can't resume stream 2011-06-07 18:48:53 -04:00
Jefry Lagrange
2090b9b900 fixed small bug in dispatcher 2011-06-06 23:43:13 -04:00
Jefry Lagrange
89cd4b2e45 stream resumption (needs testing) 2011-06-06 23:34:19 -04:00
Jefry Lagrange
9c8b63afc4 Checks for stanzas handled by server 2011-05-31 17:09:49 -04:00
Jefry Lagrange
5b1edd03b8 Smacks class added, responds to ack requests 2011-05-30 20:14:26 -04:00
Yann Leboulanger
359a6e901e improve connection to server that have an IPv6 but jabber server don't listen on that IP. 2010-10-29 11:37:07 +02:00
Yann Leboulanger
ef05eb75d9 don't remove keepalive and xmpp ping timeouts when we get an expected stanza. 2010-02-25 22:56:38 +01:00
Éric Araujo
357d7db07d fixed some whitespace thanks to 2to3 -f ws_comma 2010-02-10 19:24:11 +01:00
Éric Araujo
fedd7dc8e2 convert tabs to spaces in source code thanks to reindent.py
holy diff batman!
2010-02-08 15:08:40 +01:00
Alexander Cherniuk
6d0f28c47d More doc-string (and not only) refactoring 2009-11-26 16:32:56 +02:00
Stephan Erb
ac5d0f24da Fix error in the documentation of our xmpp dispatcher fork.
Raise NodeProcessed if the stanza should NOT be handled by other user handlers.
2009-11-14 19:54:33 +01:00
Yann Leboulanger
11f01f1c1c fix traceback when disconnecting from BOSH. 2009-11-06 17:58:39 +01:00
Jonathan Schleifer
086d031374 Remove spaces at EOL. 2009-06-15 21:00:14 +02:00
Yann Leboulanger
16fa30a1e7 handle stream error and show message to user. Fixes #4660, #4823 2009-02-19 13:18:23 +00:00
Yann Leboulanger
a2b534c040 really fix dispatcher to support several waiting stanza at the same time. Fix #4299 2009-02-15 14:13:21 +00:00
Yann Leboulanger
f443673bfd allow to wait for more than one answer at the same time with SendAndCallForResponse. Fixes #4299 2009-02-15 13:17:33 +00:00
Yann Leboulanger
e0123f0c24 encrypt and decrypt GPG messages in a thread, and call a callback when it's finished (sending a message is now asyncronous). Fixes #4445 2009-02-06 19:01:36 +00:00
Stephan Erb
8a19e11bee Add some FIXME statements due to open questions. Improve a two default parameters. 2009-01-11 13:42:39 +00:00
Stephan Erb
bc3445881f Rename client.py to plugin.py, as all client logic has already been moved to client_nb.py
Introduce a get_instance factory method for all plugins and other xmpp related classes. This will help us to decouple plugs in order to make them testable.
2009-01-09 00:49:58 +00:00
Stephan Erb
d7091c74a4 Remove method that was implemented for old, blocking dispatcher but is now unused. 2008-12-28 00:01:48 +00:00
Stephan Erb
b7400724b7 Coding standards and documentation improvements in dispatcher_nb.py. Many open questions remain at my side. Please check FIXMEs. 2008-12-27 11:39:52 +00:00
Yann Leboulanger
b317ffcdae merge BOSH branch to trunk 2008-12-15 21:06:08 +00:00
Yann Leboulanger
e389e0b16b [thorstenp] remove whitespace at eol 2008-12-03 21:56:12 +00:00
Yann Leboulanger
60ba33eb31 [thorstenp] fix possible undefined loop variables 2008-12-03 17:38:16 +00:00
Yann Leboulanger
31dc32eeb9 [thorstenp] fix redefined builtins 2008-12-03 17:16:04 +00:00
Yann Leboulanger
c163e90b10 [thorstenp] fix unused variables 2008-12-02 15:53:23 +00:00
Yann Leboulanger
c69b4e90b6 detect and handle incorrect stream start. Fixes #4499 2008-11-21 10:02:16 +00:00
Yann Leboulanger
06ab4a7b6d revert thorstenp patches for now. They introduce bugs. 2008-10-20 21:38:06 +00:00
Yann Leboulanger
f801a50260 [thorstenp] fix unused variables 2008-10-20 21:17:48 +00:00
Yann Leboulanger
fd54e68e6d [thorstenp] some fixes with type() -> isinstance() 2008-10-11 10:06:49 +00:00
Yann Leboulanger
992e90208e [thorstenp] use != instead of <> 2008-10-11 10:02:49 +00:00
Yann Leboulanger
196dd7e30a [thorstenp] use isinstance rather than type(x) == y. use sorted() 2008-10-11 09:59:52 +00:00
Yann Leboulanger
00543277e4 [thorstenp] replace ` with repr 2008-10-11 09:51:27 +00:00
Yann Leboulanger
ed748fdda3 [thorstenp] replace list with tuple in for and if 2008-10-11 09:42:59 +00:00
Yann Leboulanger
9d7c80d522 [thorstenp] replace has_key by key in dict. Fixes #4392 2008-10-07 20:41:59 +00:00
tomk
a76c173816 - improved SSL connections with BOSH - SSL over HTTP proxy is possible now,
Gajim will do HTTP CONNECT on proxy to reach the BOSH Conn manager and try
  to estabilish TLS (same as what firefox do when approaching HTTPS server via
  proxy)
- moved proxy-connecting code to xmpp/proxy_connectors.py
- debugged SOCKS5 proxy code
- tested with Tigase server
2008-08-14 21:48:43 +00:00
js
8605cd3f38 For historical reasons, we have a tab width of 3. This is strange, but
we have that in all files. To at least lesser the confusion a bit, add
vim tags for that.
Additionally, fix wrong #! in a few files.
2008-07-29 19:49:31 +00:00
tomk
af3f1a9dd4 - implemented BOSH key sequencing, acknowledgements
- improved HTTP persistent connections
- added alarm-unregister method to idlequeue
- extended proxy managing dialog for BOSH proxy
2008-07-26 22:42:40 +00:00
tomk
a58618c843 persistent HTTP connections in BOSH roughly implemented, added hack for openfire incapability of after-SASL-stream-restart-response in BOSH, changed doubles quotes to single 2008-07-18 00:34:49 +00:00
tomk
cecce21c53 added hack for Openfire that doesn\'t add xmlns to child iqs of sent body stanzas 2008-07-13 23:10:11 +00:00
tomk
3d860f40a6 BOSHClient transformed to NonBlockingBOSH transport - it's easier to maintain more connections from below, implemented handling of non-persistent HTTP connections - it runs with ejabberd, improved NonBlockingTransport interface, minor changes in BOSHDispatcher 2008-07-13 22:22:58 +00:00
tomk
e1899f34dc new BOSHDispatcher (in dispatcher_nb), improved BOSHClient class, minor changes in other xmpp modules 2008-07-07 23:04:10 +00:00
tomk
952e4a1569 moved bosh code from client_nb.py to bosh.py, replaced debug logging with debug.py by logging in whole xmpppy (debug.py is now unused) 2008-07-02 23:29:10 +00:00
tomk
f3820706fb - Refactored non-blocking transport and client classes - getaddrinfo is called
in Client now
- Added NonBlockingHttpBOSH transport (to tranports_nb) and BOSHClient
(to client_nb)
- Extended possible proxy types in configuration by "BOSH" proxy
- Rewrote NonBlockingTLS to invoke success callback only after successful TLS handshake is over (formerly, the TLS Plugin returned right after sending <starttls>)
2008-06-30 00:02:32 +00:00
js
408d3b4ff6 Revert r9859 as this killed the stream.
This isn't an easy fix, we need to stop using expat in namespace aware
mode.
2008-06-29 01:40:49 +00:00
js
23cdc3fd6f Don't disconnect on unbound prefixes.
Fixes #3083. I can't believe this was unfixed for so long, as it's
really a rather easy fix.
2008-06-29 01:25:52 +00:00