Mercurial > pidgin.yaz
annotate README.dbus @ 13914:3ae8a3935406
[gaim-migrate @ 16414]
First stab at trying to fix the MSN http connect method. It still
doesn't work, and I'm not sure why, but it gets a lot farther in
the signon process now.
For those unfamiliar with the issue, the MSN http connect method
stopped working after all the non-blocking I/O changes. The http
connect method is apparently used by lots of people behind silly
firewalls and stuff, and therefore we really shouldn't release
Gaim 2.0.0 without it working, because people will complain.
The two main problems were
1. The outgoing message queue was removed in favor of buffering all
data to one large buffer. This sounds good in theory... but apparently
each message sent to and from the server has a "SessionID" in the
HTTP header. Every message we send should use the same SessionID as
the last packet we received from the server. So basically you can't
put two messages into the outgoing buffer at the same time because
you don't have the correct SessionID to use for the second message.
You have to wait until you get the reply from the server.
2. There were some strange buffer problems with using the wrong
variable when trying to combine the header+body into one buffer
before sending the message.
I also fixed a small memleak or two, added some comments, and
tried to clean up the code a little.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 03 Jul 2006 20:39:04 +0000 |
parents | 2eca9ed49469 |
children |
rev | line source |
---|---|
11055 | 1 This file describes how to compile and run gaim with dbus support. |
2 Hopefully, most of the steps from point 3 will soon be automated. | |
3 | |
4 | |
5 1. Make sure you have the latest version (0.34) of the dbus library | |
6 installed, including glib bindings. | |
7 | |
8 http://www.freedesktop.org/Software/dbus | |
9 | |
10 | |
11 2. Compile gaim | |
12 | |
13 ./configure --enable-dbus | |
14 make | |
15 make install | |
16 | |
17 | |
18 3. Configure your dbus instalation for gaim | |
19 | |
20 A. Find your dbus session configuration file, usually | |
21 | |
22 /etc/dbus-1/session.conf | |
23 | |
24 B. In that file, find the <servicedir> section. This section | |
25 contains the directory that stores files describing services, | |
26 usually | |
27 | |
28 /usr/share/dbus-1/services | |
29 | |
30 C. Copy src/dbus-gaim.service to that directory | |
31 | |
32 D. Edit the dbus-gaim.service file you've just copied, and replace | |
33 the path in the "Exec=" line with the path to your gaim | |
34 executable. | |
35 | |
36 | |
11067 | 37 4. Start Session DBUS if you haven't done it already |
11055 | 38 |
39 eval `dbus-launch --session` | |
40 export DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID | |
41 | |
42 These commands will set the two above shell variables. These | |
43 variables must be set before running any dbus-aware programs. | |
44 | |
11067 | 45 Start gaim as usual. To communicate with it, use "gaim-send". When |
46 you execute gaim-send, the dbus system will automatically start a gaim | |
47 process if one is not running already. | |
11055 | 48 |