Commit Graph

408 Commits

Author SHA1 Message Date
Yann Leboulanger 0e3c634ff2 new account registration wizard that follow XEP 77 better. fixes #2700 too (advanced options available while creation an account) 2007-05-31 21:49:49 +00:00
Piotr Gaczkowski 512db7618b Lame Mood and Activity support. Announcing caps. 2007-03-28 21:18:16 +00:00
Yann Leboulanger efaa1a18e7 add a now argument to the send function, so that stanza is sent instantly instead of added to queue. Use it to send answer to adhoc command when we disconnect. fixes #3008 and #2808 2007-03-15 12:53:29 +00:00
junglecow bbed22a410 - Workaround for #2846: Make the error silent. Fixes #2846.
- Workaround for #2838: Use synchronous (blocking) SSL handshake. Fixes #2838.
2007-03-03 20:13:43 +00:00
Yann Leboulanger cba44a43a1 handle proxy errors. fixes #799 (socks5 proxies should now be supported. tests needed) 2007-02-07 22:05:52 +00:00
Yann Leboulanger 0ec4aa3676 [smoku] fix SASL auth. fixes #1911 2007-02-06 08:57:59 +00:00
Yann Leboulanger f450c0eb65 [misc] XEP-0199 (Xmp ping) support.fixes #2947 2007-01-27 10:19:53 +00:00
Yann Leboulanger 852974efa7 ability to set and receive an empty subject. fixes #2938 2007-01-26 18:30:45 +00:00
Yann Leboulanger 9a6b090506 begining of socks5 proxy support. error handling is missing. see #799 2007-01-24 21:50:59 +00:00
junglecow 37ffd5585b Removed an old-style logging command, as _owner may not always exist. Partial attempt at #2928 2007-01-23 20:06:07 +00:00
Yann Leboulanger 3567a8c20f remove privacy list from dialog only when server return the result, else show an error dialog. fixes #2853 2007-01-11 20:21:53 +00:00
junglecow 9814451e07 - [dcraven] Fixed spelling error. Fixes #2580.
- Demoted some error messages from error to debug level.
2007-01-01 02:11:15 +00:00
junglecow 5529852ded - Fix TB on fingerprint mismatch
- Add debug message on import failure of PyOpenSSL
 - Update gajim.org digest after migration to new server
2006-12-29 01:46:46 +00:00
Yann Leboulanger 70bf104cfc [misc] XEP-0202 (Entity Time) support. fixes #2830 2006-12-28 16:27:41 +00:00
junglecow e1ad5b15d0 - Removed unnecessary import
- Fixed name of transport_nb's logger
2006-12-28 11:15:44 +00:00
junglecow c16642c838 Catch socket.gaierror. Fixes #2840. 2006-12-27 22:45:23 +00:00
junglecow e816b38a0f Check if self._sock exists before trying to close it. Fixes #2839. 2006-12-27 20:44:21 +00:00
junglecow 5f16eb633b Re-deleted exc_clear. Reason:
- It's unnecessary
 - It confuses people

See [7433] and #1575. This is an old workaround for psyco braindeadness, which
we don't use anymore. If there's a reason this should stay in code, please
document clearly, and re-add. Thanks.
2006-12-27 18:57:30 +00:00
junglecow 847d9fe6e9 - Enhanced parsing of -l/--loglevel option
- Demote one message w/exception to debug
 - Hopefully improved user error message when fingerprint is bad
2006-12-27 18:38:50 +00:00
Nikos Kouremenos 64dec82bb6 readd something, unless there is a reason it got removed in [7706] 2006-12-27 06:09:15 +00:00
junglecow 9deb76a8ad - Started new way of logging, with configurable level for each subsystem
- Added -q, --quiet (speaks for itself)
   - Added -l, --loglevel subsystem=LEVEL,subsystem2=LEVEL2,...
 - Quell winsock 10035 error. (Equivalent of EINPROGRESS, but winsock likes to have its own error numbers.)
 - Hide SSL certificate debug stuff unless gajim.c.x.transports loglevel is DEBUG or lower
 - Avoid unicode problems if we set a profile
 - Move fingerprint checks from _register_handlers to _connect_success
 - Some enhancements to fpr checking code
2006-12-23 21:18:07 +00:00
junglecow 44674f7e75 - Implement matching of fingerprints against servers.xml
- Add support for fingerprints to servers.xml parser.
 - Add support for 'hidden' servers to servers.xml parser.
 - Add some fingerprints to servers.xml, for testing and as example for the new format.
 - Force asynchronous (nonblocking) SSL handshake in all case
 - Add logging to c/connection.py

Known issues:
 - Checking of fingerprints doesn't work on in-band SSL (Typically port 5222) because of stuff happening out of sequence. Workaround: use immediate SSL mode ("Legacy SSL" option in server config). Because there is as of yet no other way to /force/ SSL, this is also the most secure setting.
 - A lot of code is still looking for a better place to live.
2006-12-22 23:30:23 +00:00
junglecow 35ecad1188 - Switch back to TLSv1 method
- Remove debug prints in stdlib ssl compatibility code
2006-12-21 18:08:17 +00:00
junglecow 62350adb36 - PyOpenSSL branch merged to trunk
Welcome to the world of PyOpenSSL! Please install PyOpenSSL, thanks!

svn merge -r 7426:HEAD svn://svn.gajim.org/gajim/branches/pyopenssl
2006-12-20 21:52:40 +00:00
junglecow fddb000a89 [Trunk]
- In verbose mode, print encodings. (Especially for Windows users who don't have Python) (gajim.py)
 - Attempt at fixing traceback when getting user's home directory in Windows. See #2812. (c/configpaths.py)
 - Show 'error' icon next to account while waiting for reconnect. Fixes #2786. (c/connection_handlers.py, c/gajim.py, c/connection.py)
[PyOpenSSL]
 - Fix 100% CPU usage and hanging connection when server closes connection on us. (c/x/transports_nb.py)
 - Fix 'hanging' connection when server closes the connection on us before we can open the XML stream. (Disconnect handler didn't get called.) (c/x/client_nb.py)
 - Change prints to logger calls, various enhancements to debug printing, reduce spam (c/x/transports_nb.py)
 - this → self (c/x/transports_nb.py)
 - Call _do_receive() once to collect error message from socket, when error flag is raised in scheduler. (c/x/transports_nb.py)
2006-12-20 20:40:08 +00:00
junglecow 8c78a14c3c - In [7647], reading of PID file was moved out of try..except block. Fixed.
- [PyOpenSSL] Small fix to error handling.
2006-12-15 10:57:25 +00:00
junglecow c09e6e0b93 [PyOpenSSL]
- Improved data extraction from exceptions
 - Clearer error messages
 - Reduced exception spam
2006-12-13 20:15:22 +00:00
junglecow 7c0696093a - Trying to connect to server every 20 seconds forever is extremely rude to its owner. Let's be polite and do exponential back-off. (See #2411)
- [PyOpenSSL] Ported [7443] to pyopenssl branch.
2006-12-08 21:19:01 +00:00
junglecow 4a58bc4797 [pyopenssl] Yet more exception fixes 2006-12-01 22:23:45 +00:00
junglecow 236ed0463a [pyopenssl] More exception fixes 2006-11-28 22:12:03 +00:00
junglecow 5cb241b8c0 [trunk]
- Typo
[pyopenssl]
- Better exception handling
- Prevent 100% cpu usage when ssl handshake is slow
2006-11-28 01:02:31 +00:00
Yann Leboulanger a37b946098 [sgala] IPV6 support for connection fith server. see #1969 2006-11-25 11:50:31 +00:00
Yann Leboulanger 7cdb177558 show error message when we try to register to an unavailable transport. fixes #1574 2006-11-22 19:49:41 +00:00
Jean-Marie Traissard 6775c3a43d Some errors spoted by file source checkers 2006-11-20 19:11:31 +00:00
Tomasz Melcer b9f5755ad6 Use iterators, better for memory usage. 2006-11-20 16:51:35 +00:00
Yann Leboulanger 2ebf1309de fix logic for #2680 2006-11-19 23:58:14 +00:00
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
Nikos Kouremenos 105616cfc3 sasl not support msg using debug. Dimitur, maybe it is time to remove blocking versions from svn? 2006-02-19 20:50:59 +00:00
Dimitur Kirov e748ad7990 make sure data tuple is deleted 2006-02-18 10:16:34 +00:00
Dimitur Kirov 32bfde61e2 faster CharacterDataHandler in NodeBuilder 2006-02-18 02:08:49 +00:00
Dimitur Kirov eacf5fb900 revert to self.DEBUG when SASL is not supported 2006-02-18 00:01:39 +00:00
Dimitur Kirov 6b615a8d72 delete debug error message, which causes TB
to be printed
2006-02-14 18:13:20 +00:00
Dimitur Kirov f84e410e5b plug_idle can have readable and writable False
in this case we wait only for close events
2006-02-12 02:23:20 +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 79d39ac119 remove fd from selector and timeouts
when pollend event is raised
2006-02-11 21:27:44 +00:00
Dimitur Kirov d6fee1ea49 added missing argument to NBCommonClient call 2006-02-06 11:28:05 +00:00
Dimitur Kirov c3ef6cfbbc I'm losing the logic of this condition, but
this is a copy of the original, so it should
work
2006-02-06 10:00:23 +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
Norman Rasmussen f0adbc9892 fixed line endings 2006-01-20 13:23:38 +00:00
Nikos Kouremenos 1c5eab53d3 [knuckles] GMail notifications now always work and are enabled on gajim startup 2006-01-18 22:54:07 +00:00
Norman Rasmussen d5842b8e81 fixed import 2006-01-18 21:03:29 +00:00
Norman Rasmussen 65f67a7a04 upstream updates 2006-01-18 20:46:29 +00:00
Travis Shirk f52afdcbe8 Merged revisions 5017-5020,5022-5029 via svnmerge from
svn://svn.gajim.org/gajim/trunk

........
r5017 | asterix | 2006-01-06 01:55:51 -0700 (Fri, 06 Jan 2006) | 2 lines

use escape for pango markup

........
r5018 | asterix | 2006-01-06 02:21:39 -0700 (Fri, 06 Jan 2006) | 2 lines

missing new contacts function

........
r5019 | asterix | 2006-01-06 11:03:07 -0700 (Fri, 06 Jan 2006) | 2 lines

handle the click on toggle_gpg_encryption menuitem

........
r5020 | asterix | 2006-01-06 11:14:14 -0700 (Fri, 06 Jan 2006) | 2 lines

use the saved size even if a chat window is already opened

........
r5022 | asterix | 2006-01-07 03:43:47 -0700 (Sat, 07 Jan 2006) | 2 lines

we can now resume filetransfert

........
r5023 | asterix | 2006-01-07 03:56:31 -0700 (Sat, 07 Jan 2006) | 2 lines

[Knuckles] Google E-Mail Notification

........
r5024 | asterix | 2006-01-07 04:02:16 -0700 (Sat, 07 Jan 2006) | 2 lines

better string

........
r5025 | asterix | 2006-01-07 04:14:32 -0700 (Sat, 07 Jan 2006) | 2 lines

fix a TB

........
r5026 | asterix | 2006-01-07 05:36:55 -0700 (Sat, 07 Jan 2006) | 2 lines

we can now drag a file on a contact in the roster to send him a file

........
r5027 | asterix | 2006-01-07 06:26:28 -0700 (Sat, 07 Jan 2006) | 2 lines

contact.groups is always a list, even if emtpy

........
r5028 | asterix | 2006-01-07 06:54:30 -0700 (Sat, 07 Jan 2006) | 2 lines

make all buttons insensitive on a category row in disco

........
r5029 | asterix | 2006-01-07 07:19:25 -0700 (Sat, 07 Jan 2006) | 2 lines

auto open groupchat configuration window when we create a new room

........
2006-01-07 17:25:35 +00:00
Nikos Kouremenos 0584c4bff1 almost impossible to fail 2005-12-26 18:38:05 +00:00
Nikos Kouremenos 250e916318 check so we cannot fail 2005-12-26 13:36:55 +00:00
Nikos Kouremenos 6a1db9ea0f should work now. wed plz test 2005-12-26 13:28:13 +00:00
Nikos Kouremenos 8a875bdb2c do some crazy stuff on exception msg when exception object does not have errno attribute 2005-12-26 01:05:36 +00:00
Nikos Kouremenos 9385f1074f [greblus] preferences window now can control the color of URLs 2005-12-25 23:48:08 +00:00
Yann Leboulanger 993c09ec70 catch correct exception when interrupt system call 2005-12-21 17:55:57 +00:00
Yann Leboulanger 323663132b fix more interrupt system call 2005-12-17 23:07:13 +00:00
Norman Rasmussen 786da12472 http://cvs.sourceforge.net/viewcvs.py/xmpppy/xmpppy/xmpp/auth.py
Wed Oct 26 08:45:22 2005 UTC by snakeru
Fixed SASL bug on win32 platform. (Thanks to Martin Thomas)
2005-11-30 17:08:45 +00:00
Travis Shirk fb4e8f254d SASL challenges that have '=' in a value can now be parsedr; '=' in a base-64 encoded nonce is rather common 2005-11-29 20:27:57 +00:00
Yann Leboulanger c283e7e92c we can now handeled timeouts: when we don't receive registration info within 30 secondes, we show an information window 2005-11-19 19:33:11 +00:00
Nikos Kouremenos 75505422b1 or not and 2005-11-16 21:39:17 +00:00
Nikos Kouremenos 97a7585dd0 avoid a tb 2005-11-16 21:24:28 +00:00
Yann Leboulanger 6d3fe8e459 hack in order to register our Event handler as soon as Dispatcher is pluged in 2005-11-06 10:12:22 +00:00
Yann Leboulanger 969bd9fa0d fix bug in xmpppy about SASL with TLS 2005-11-05 15:23:33 +00:00
shteef b69bc501ae New Service Discovery, couple of quick notes about this commit:
* src/disco.py contains all the disco stuff
 * registration remains in src/config.py
 * data/pixmaps/agents contains the icons used in the toplevel server browser
   and the banner. They're referenced at the top of src/disco.py.
2005-10-30 09:58:13 +00:00
Nikos Kouremenos f590da078a [xmpppy]it is standarD not with T; thanks dkm 2005-10-21 21:30:54 +00:00
Nikos Kouremenos 5c6562860a [xmpppy-cvs:features.py] The setPrivacyList function used a nonexistent payload variable where it should be the list param 2005-10-11 12:31:27 +00:00
Nikos Kouremenos ce2b7cad6a [xmpppy-cvs] non-fatal patch. thanks norman 2005-10-11 12:27:27 +00:00
Yann Leboulanger f0deb4bc32 update browser.py and commands.py from cvs 2005-10-09 10:04:17 +00:00
Nikos Kouremenos 6e50f0bbc0 update commands.py from xmpppy cvs 2005-10-07 14:53:46 +00:00
Yann Leboulanger 61c64536c8 ServiceRegistrationWindow now support Data form 2005-10-05 10:13:31 +00:00
Yann Leboulanger 4f30b67d9e add a NS in xmpp 2005-10-04 11:51:54 +00:00
Yann Leboulanger a8117faf2d [gjc] "interrupt system call" are now handled and cause the function to be retried 2005-09-28 15:00:01 +00:00
Yann Leboulanger 6d0bf25adc SRV lookup moved from xmpp to connection.py 2005-09-18 19:52:06 +00:00
Yann Leboulanger 67c9312d37 SRV lookup is now an option and is turned off when we use SSL 2005-09-16 15:19:01 +00:00
Yann Leboulanger ff1edfffff add getAnID() function 2005-09-10 09:24:39 +00:00
Nikos Kouremenos 844dfd8096 import sys 2005-09-08 09:13:51 +00:00
Nikos Kouremenos 22f1026f3a print errors/warnings in sys.stderr 2005-09-08 08:54:59 +00:00
Nikos Kouremenos 1ccb1e5514 remove TODO 2005-09-05 12:34:51 +00:00
Nikos Kouremenos 217318a3b1 say to the user what libs we support 2005-09-05 11:45:32 +00:00
Nikos Kouremenos c511ec95eb various fixes 2005-09-05 11:38:46 +00:00
Nikos Kouremenos 0ecc5877f2 say the truth 2005-09-05 11:34:46 +00:00
Nikos Kouremenos b661626f14 fix coding standards for dman patch 2005-09-05 11:32:59 +00:00
Yann Leboulanger 70e965ce7f temporary fix 2005-09-05 08:23:31 +00:00
Yann Leboulanger 9cfdc1fa10 fix typo 2005-09-05 07:50:47 +00:00
Yann Leboulanger 59464c6b4b [dman] use dnspython if available, or switch to pydns 2005-09-05 06:48:56 +00:00
Nikos Kouremenos 3200801bc7 revert last srv commit so svn is usable 2005-09-04 22:22:30 +00:00
Yann Leboulanger 310baa5234 [dman] SRV is back with DNS module 2005-09-04 21:26:12 +00:00
Nikos Kouremenos d26696bbe5 [Laurent Sartran] catch exception when SSL connection is reset during handshake 2005-09-01 17:44:57 +00:00
Nikos Kouremenos 408aae5084 [nicfit] do keepalive without iq:last but just send " "
good because google talk (and other servers) do not support iq:last
good because we do not disconnect ourselves if time changes
good because we do not disconnect ourselves on modal dialogs
good because even stpeter thinks that is the best way to do keepalives
good because we do not flood the server with iq:last
bad because I say it is good :D
2005-08-27 00:07:43 +00:00
Nikos Kouremenos e3733b0827 fix srv l00kup 2005-08-24 13:04:42 +00:00
Nikos Kouremenos 1449be9bad commit a patch for xmpppy 2005-08-18 18:50:30 +00:00
Yann Leboulanger 9cbec8ac6d fix a TB 2005-08-12 07:49:01 +00:00
Yann Leboulanger 0c64b91de4 no need to knowthe ID to know if it's our vcard 2005-08-08 13:34:48 +00:00
Yann Leboulanger a7572c4352 we not send sha of our VCARD (JEP 153) in every presences 2005-08-07 21:42:32 +00:00
Yann Leboulanger 37a315ac9d xml console now print everything that is sent/received 2005-08-05 23:43:28 +00:00
Yann Leboulanger 6f6d5c0dcc JEP70 support (thx nicfit !) 2005-08-05 13:29:39 +00:00
Dimitur Kirov e9daf09fe5 send file is now functional 2005-08-03 14:04:54 +00:00
Nikos Kouremenos 4054ed3384 remove in_buffer patch from xmppp because it was slowing parsing because of timeout being too high? anyways we should reelase 0.8 someday 2005-08-03 10:28:21 +00:00
Dimitur Kirov e9bcc20556 check if self.Connetion is instantiated 2005-08-02 14:25:21 +00:00
Dimitur Kirov b936f2db52 moved file outside xmpp 2005-08-01 22:50:46 +00:00
Nikos Kouremenos dd821ac164 use better strings (adhere to HIG, try to describe better what is going on), make code by dkirov adhere to our coding standards, fix comments and FIXME in comments 2005-08-01 22:48:58 +00:00
Dimitur Kirov c204880ce5 moved socks5queu to gajim.py in order to have
only one queue
2005-08-01 22:43:33 +00:00
Dimitur Kirov 0cd682f2ce file transfer progress notification 2005-08-01 15:00:27 +00:00
Nikos Kouremenos f51c2b0f95 initial patch: do not throw all xml at once to parser because that freezes UI until process is finished. TODO: a better way to seperate what is left to seperate and send by smaller chunks to parser 2005-07-31 17:18:27 +00:00
Dimitur Kirov a9a2b483cb fcntl not present in windows 2005-07-31 11:29:18 +00:00
Dimitur Kirov 151844315a add disco info 2005-07-30 15:06:35 +00:00
Dimitur Kirov 35c8487325 file transfer don;t block GUI 2005-07-30 14:13:45 +00:00
Dimitur Kirov e9f10feac1 moved from common 2005-07-30 10:58:46 +00:00
Dimitur Kirov 06c4568133 added few ns 2005-07-30 10:19:21 +00:00
Yann Leboulanger 3a8a6e4d8d new_account is back !
getRegInfo can be synchronous if we want
2005-07-07 20:45:24 +00:00
Yann Leboulanger d62b4e1ea2 NAT Timeout packet are now sent from connection.py so they will be configurable and won't be sent while we connect to a server 2005-06-22 14:54:02 +00:00
Yann Leboulanger 597e0c16f7 these files are not scripts 2005-06-20 10:56:54 +00:00
Nikos Kouremenos 9f03fc4f98 TLS/SSL and response [typo] 2005-06-20 10:35:58 +00:00
Yann Leboulanger 87f1dbcac8 we can now change our nick in gc 2005-06-18 22:09:31 +00:00
Nikos Kouremenos e325da1e1c patch xmpppy so it does not loop for ever on timeout disconnection. this patch and previous thanks to Alexey [lib author] 2005-06-18 11:33:29 +00:00
Nikos Kouremenos d56a4b619d patch to force ssl no matter which is the port 2005-06-18 11:22:19 +00:00
Nikos Kouremenos bde8d6b26c hopefully the last srv commit 2005-06-14 22:08:48 +00:00
Nikos Kouremenos f8ab62c2c4 bugfix now SRV should work 2005-06-14 21:55:22 +00:00
Nikos Kouremenos 027d247f55 bugfix 2005-06-14 15:14:23 +00:00
Nikos Kouremenos 123ad74370 patch xmpppy to have srv [via optional dep dnspython] 2005-06-14 14:32:30 +00:00
Yann Leboulanger 8b6bb3ef0c request_register_agent_info is now asynch in xmpp 2005-06-14 10:29:36 +00:00
Nikos Kouremenos 69a9f6f08a [xmpppy] some jabber servers have ssl on 443 (eg. jabber80.com) so check for that too, and return ssl and not tls as string for return value in connect() 2005-06-02 18:15:29 +00:00
Yann Leboulanger 92b1c8226c SASL auth is back, ths Alexey 2005-05-26 06:50:17 +00:00
Yann Leboulanger 693aad9b19 show transports rows when we are online, and hide them when we are offline 2005-05-25 18:25:39 +00:00
Yann Leboulanger e3ddf04b9b Alexey's patch to disable SASL protocole 2005-05-24 18:08:37 +00:00
Yann Leboulanger 392c1dc7f4 fix DIGEST auth with Alexey patch 2005-05-24 17:50:27 +00:00
Yann Leboulanger 0f41e49758 set default timeout of xmpp to 45 instead of 25 2005-05-23 09:53:05 +00:00
Yann Leboulanger fe53843edb we wait 45 for keepalive packages 2005-05-22 17:24:20 +00:00
Yann Leboulanger 6f6f45d07b check for KeyError (fix #311) 2005-05-22 10:10:41 +00:00
Yann Leboulanger 0e7e396289 these lines cause an error 2005-05-20 14:46:27 +00:00
Yann Leboulanger b5ed8ee163 apply Alexey patch for TLS error. Now buffer is 1M, so this workaround should prevent TLS crash 2005-05-20 13:27:39 +00:00
Nikos Kouremenos 67dd479d35 making previous commit a bit more clear 2005-05-15 19:23:44 +00:00
Nikos Kouremenos 9dcf2d0e79 removing colors from DEBUG when in windows 2005-05-15 19:19:00 +00:00
Nikos Kouremenos a7bf88e8f1 removing string module it is deprecated 2005-05-15 11:35:42 +00:00
Nikos Kouremenos 6174a6cb51 removing colors when in windows 2005-05-15 11:34:48 +00:00
Yann Leboulanger e1020b288f the delayed timestamp in before time.time() ! 2005-05-13 18:23:08 +00:00
Nikos Kouremenos d4d667690e applying patch by Alexey to allow Gajim to exit after disconnection. 2005-05-12 09:13:35 +00:00
Yann Leboulanger 2f35fade71 bugfix when keepalive package doen't come back 2005-05-10 17:45:10 +00:00
Yann Leboulanger aa9de25923 Alexey patch that allows discover that server is violating RFC by not restarting stream after TLS start.
If server did such thing xmpppy will not crash unpredictely but will issue a appropriate exception.
2005-05-10 09:27:04 +00:00
Yann Leboulanger 2171def073 we get the roster asynchronously now 2005-05-08 17:00:41 +00:00
Yann Leboulanger da4457401f apply Alexey's patch in order to be able not to use TLS connection 2005-05-08 16:50:56 +00:00
Yann Leboulanger 1d87384800 bugfix from Alexey about proxy, can someone test if it works ? 2005-05-07 17:02:32 +00:00
Yann Leboulanger 58705bbba5 patch from Alexey: new function: SendAndCallForResponse.
It will help in resolving locking problems
2005-05-07 16:16:24 +00:00
Yann Leboulanger be913f8f27 xmpp patch from alexey: fix auth problem 2005-05-07 14:46:21 +00:00
Yann Leboulanger 54ae5dc351 send only _one_ keepAlive packet 2005-05-07 12:41:29 +00:00
Yann Leboulanger 56d60f3fd5 xmpppy changes:
- Sync with latest CVS version + gajim patches.
- streamErrorHandler disabled. If you want enable it - unrem it at line 66 of
  dispatcher.py
- TLS re-enabled. Should work fine now
- disconnection TLS plugout re-enabled. Didn't successed in reproducing
  problem though so maybe not fixed.
- My temporary fixes replaced with CVS ones.

gajim connection.py changes (in chunks order):
- getTags is incorrect. Replaced with getChildren
- browseAgents is absent from xmpppy. Fixed with manual node send. Made use of
  buildReply method and con argument
- formatting fix
- crude fixed register problem. I do not know how to do it properly. It is
  client stuff. Honest! I have no idea how to make it non-blocking and yet make
  library to fallback to older protocols.
  getInstructions() moved to xmpppy
Thanks Alexey !
2005-05-07 10:57:40 +00:00
Yann Leboulanger e8965ae8b4 send keepalive every minute 2005-05-04 19:20:02 +00:00
Nikos Kouremenos 3db9a32c91 select and TLs do not like each other. falling back to non TLS. thanks rohan 2005-04-29 15:56:43 +00:00
Nikos Kouremenos 3cb963554d features.py still problematic, just adding the stuff alexey said in case his grab this to continue fixing 2005-04-29 14:16:55 +00:00
Yann Leboulanger 3cd6922815 fix some typos 2005-04-26 21:33:01 +00:00
Yann Leboulanger c85273d556 switch from jabberpy to xmpppy 2005-04-26 18:45:54 +00:00