Re: jabber disconnects
Magnus Henoch <[email protected]>
| Newsgroups | gmane.network.centericq |
|---|---|
| Message-ID | <[email protected]> |
JoE <[email protected]> writes: >> I was wondering if anyone had experienced the >> following with a Jabber server. I setup the login information >> and try to login, and it disconnects with an error 503. > Here is a quickhack patch, which simply resolves this problem. The > "Agent List" query is deprecated in the jabber protokoll, but centericq > close the whole connection if this service is unavailable (maybe someone > give a nicer solution than this workaround ;). I propose the patch below. It makes centericq ignore errors which are not directly related to authentication. Magnus _______________________________________________ Cicq mailing list Cicq-xGejAJT2w6wWP6gT/[email protected] http://mailman.linuxpl.org/mailman/listinfo/cicq Questions? Check the FAQ first: http://centericq.de/faq/
centericq.patch
(text/x-patch, 757 B)
This patch makes centericq not close the connection when it receives a
failure unrelated to authentication.
diff -c /tmp/centericq-4.21.0/src/hooks/jabberhook.cc.orig /tmp/centericq-4.21.0/src/hooks/jabberhook.cc
--- /tmp/centericq-4.21.0/src/hooks/jabberhook.cc.orig Sat Sep 30 11:24:59 2006
+++ /tmp/centericq-4.21.0/src/hooks/jabberhook.cc Sat Sep 30 11:25:17 2006
@@ -887,6 +887,8 @@
void jabberhook::gotloggedin() {
xmlnode x;
+ flogged = true;
+
x = jutil_iqnew(JPACKET__GET, NS_AGENTS);
xmlnode_put_attrib(x, "id", "Agent List");
jab_send(jc, x);
@@ -935,7 +937,6 @@
int i;
icqcontact *c;
- flogged = true;
ourstatus = available;
time(&timer_keepalive);
Diff finished. Sat Sep 30 11:25:26 2006