Commit graph

77 commits

Author SHA1 Message Date
Yann Leboulanger
62ce6a27e7 don't try to connect twice when we get see-other-host. see #7179 2012-06-21 14:10:01 +02:00
Yann Leboulanger
449f137dd7 correctly handle see-other-host (earlier in the connection process). Fixes #7179 2012-06-19 19:19:24 +02:00
Matthew Wild
ca1dcabb28 client_nb: Call auth callback even when resuming, to establish things like ping timers. Fixes #7091 2012-03-17 23:02:27 +00:00
Yann Leboulanger
f8922005e0 fix traceback when trying to connect to a host for which auth method is not supported 2011-12-17 15:17:25 +01:00
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
d73e277f40 resuming before binding 2011-06-10 23:07:34 -04:00
Yann Leboulanger
59c8eb05a3 don't continue testing next Ips when on work 2010-11-02 22:23:13 +01:00
Yann Leboulanger
21f66fcc47 initialize a variable before it's used. 2010-11-02 20:24:37 +01: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
5d6fd195ab don't traceback when we get disconnected wile we parse stream features. Fixes #5574 2010-03-09 20:28:25 +01:00
Yann Leboulanger
9d9ef1da89 move some error/warning to info so it's not printed in stderr by default. Fixes #5609 2010-02-16 09:44:23 +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
Yann Leboulanger
960e402cf0 typo in a comment 2009-11-18 11:04:05 +01:00
Yann Leboulanger
278a8bc59e merge elghinn's branch (roster versioning) to trunk. Fixes #4661, #3190 2009-07-10 15:05:01 +02:00
Anaël Verrier
d347b79c38 * added a method to load roster from DB
* now we load roster from DB when we receive an iq result for the roster without any query
* added a "force" argument to NonBlockingRoster.getRoster(), to force the return of the instance
2009-06-27 17:56:04 +02:00
Jonathan Schleifer
086d031374 Remove spaces at EOL. 2009-06-15 21:00:14 +02:00
Anaël Verrier
9133960fbc * added one table in logs.db to save roster
* added "roster_version" in configuration to save roster version for the account
* added "ver" attribute when gajim requests the roster
2009-06-02 22:48:32 +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
cd9c041585 don't fail when stream version < 1.0. Fixes #4600 2009-01-20 09:07:41 +00:00
Stephan Erb
f8e6635edf Remove some (now) useless returns that where added because of a broken commit of mine... 2009-01-11 17:10:41 +00:00
tomk
2b0ef67c55 fixes #4657 - traceback on terminating stanza after BOSH init request 2009-01-11 15:12:28 +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
js
6ede969f5f Fix missing returns, so we don't run into that assert. 2009-01-10 22:46:26 +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
cca10e6d29 A few more coding standards and readability improvements in client_nb.py. 2009-01-08 16:30:27 +00:00
Stephan Erb
ed3de38ce5 Revert r10931. Fixes #4632. See #2634 2009-01-03 16:34:58 +00:00
Stephan Erb
8a76efb703 Proposed Fix. Make sure we read all data from our SSL socket wrappers and don't just rely on gobject.io_add_watch, select or poll.
This isn't really a clean solution, but the less intrusives fix that I can think of. Fixes #2634.
2008-12-31 14:01:53 +00:00
Stephan Erb
d8a2d8f447 Backport a few XMPPPY upstream changes.
* Use namespace instead of attrs={} for addChild
 * Unplug SASL module on auth failure (we currently disconnect so don't really need it)
2008-12-28 14:53:20 +00:00
Stephan Erb
233848aec0 Random bits in xmpp. Cosmetic only. 2008-12-27 11:45:58 +00:00
Stephan Erb
7427399a2a More coding standards and documentation improvements in client_nb.py 2008-12-26 15:25:57 +00:00
Stephan Erb
40d802284e Coding standards and documentation improvements in client_nb.py 2008-12-24 14:41:26 +00:00
Yann Leboulanger
45f9366d58 do'nt try starttls if stream version < 1.0. Fixes #4600 2008-12-22 09:59:35 +00:00
Yann Leboulanger
08bb703640 fix GSSAPI authentication 2008-12-18 18:16:04 +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
e2118de64c [thorstenp] remove useless import 2008-12-02 14:44:26 +00:00
Yann Leboulanger
06ab4a7b6d revert thorstenp patches for now. They introduce bugs. 2008-10-20 21:38:06 +00:00
Yann Leboulanger
c2c681e05c [thorstenp] remove useless import 2008-10-20 17:54:02 +00:00
Yann Leboulanger
7055eec326 fix typo 2008-10-16 18:40:00 +00:00
Yann Leboulanger
44277d6c40 prevent traceback. Fixes #4319 2008-10-16 17:19:22 +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
567f1e17c1 [thorstenp] di not use emtpy except clauses 2008-10-11 09:37:13 +00:00
Yann Leboulanger
9d7c80d522 [thorstenp] replace has_key by key in dict. Fixes #4392 2008-10-07 20:41:59 +00:00
tomk
a7c36048b9 - renamed src/common/nslookup.py to resolver.py
- refactored resolver code and added asynchronous resolver based on patch by Damien Thebault[1]
  * Uses libasyncns-python[2]. If it's not available, old nslookup resolver is used)
  * works for SRV requests only at the moment

[1] https://www.lagaule.org/pipermail/gajim-devel/2008-July/000460.html
[2] https://code.launchpad.net/libasyncns-python
2008-08-31 23:40:06 +00:00
tomk
acdf4ff143 improved disconnect handling, added comments, fixed minor bugs 2008-08-17 22:57:48 +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
tomk
4504861084 fixed handling of SSL errors 2008-08-09 12:16:42 +00:00
tomk
cbfa9d97df - TLS classes refactored - NonBlockingTLS is now plugged to NonBlockingTCP and
derived (was plugged to NonBlockingClient which made it unusable for BOSH)
- Fixed HTTP CONNECT proxy socket
- Implemented workaround for the bug with insecure-connection warning dialog
  (unfortunately, this is not over - I just forbid the transport to send
  BOSH empty bodies until auth module is plugged, which is wrong and will
  break if user will wait more than "inactivity" (usualy thirty) seconds
  before clicking the dialog.
  This workaround works with ejb and opf, and also breaks connection with
  both of them if delay is too long.
- Implemented basic TLS over BOSH. It works only with OPF and poorly.
2008-08-05 23:52:35 +00:00