[JDEV] Bug in base_accpet?
Gang Liu
gang_l at 21cn.com
Wed Feb 21 03:34:08 CST 2001
Hi,
I go to view the source code of jabberd. I found pth_raise() in mio_write() can not wake up the select loop sometimes.So the xdb request can not send to xdb_file quickly.
I am a newbie of pth.Is this a pth problem?
Linux box info: RedHat 6.1
[root at dev jabberd]# uname -a
Linux dev.vista.internal 2.2.18 #1 Wed Jan 17 11:48:49 CST 2001 i686 unknown
[root at dev jabberd]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
----- Original Message -----
From: Keith Minkler<kminkler at jabber.com>
To: jdev<jdev at jabber.org>
Sent: 2001-2-20 17:01:00
Subject: Re: [JDEV] Bug in base_accpet?
>Change the <host/> tag in your <service/> section to an <uplink/> and that should fix your problem.
>
>The reason for this is that <service/> only routes iq, message, presence, or route tags, not xdb or log..
>if you want xdb and log routed to this service, you need the <uplink/> which will send ANY undelivered
>packet to that instance. (which is why it replaces the <host/> tag)
>
>Keith Minkler
>
>On Tue, Feb 20, 2001 at 08:37:23PM +0800, Gang Liu wrote:
>> Hi,
>>
>> I use base_accpet to setup xdb_file in another linux box. Jabber server is 1.4 release.Linux is RedHat 6.1.But jabberd often hang up in xdb request..I also use tcpdump to see network traffic.When jabberd do something like below, nothing is captured by tcpdump.
>> Thanks for your help.
>>
>> Tue Feb 20 20:24:00 2001 deliver.c:460 DELIVER 2:vista.internal <xdb type='get'
>> to='amx at vista.internal' from='sessions' ns='jabber:iq:roster' id='61'/>
>> Tue Feb 20 20:24:00 2001 deliver.c:649 delivering to instance 'xdb.vista..intern
>> al'
>> Tue Feb 20 20:24:00 2001 mio.c:898 mio_write called on x: 81D4850 buffer: (null
>> )
>> Tue Feb 20 20:24:00 2001 xdb.c:201 xdb_get() waiting for amx at vista.internal jab
>> ber:iq:roster
>> Tue Feb 20 20:24:15 2001 users.c:82 checking users for host vista.internal
>> Tue Feb 20 20:24:15 2001 usercount 1 total users
>> Tue Feb 20 20:24:19 2001 deliver.c:460 DELIVER 2:vista.internal <xdb type='get'
>> to='amx at vista.internal' from='sessions' ns='jabber:iq:roster' id='61'/>
>> Tue Feb 20 20:24:19 2001 deliver.c:649 delivering to instance 'xdb.vista..intern
>> al'
>> Tue Feb 20 20:24:19 2001 mio.c:898 mio_write called on x: 81FC930 buffer: (null
>> )
>> Tue Feb 20 20:24:30 2001 deliver.c:460 DELIVER 2:vista.internal <xdb type='get'
>> to='amx at vista.internal' from='sessions' ns='jabber:iq:roster' id='61'/>
>> Tue Feb 20 20:24:30 2001 deliver.c:649 delivering to instance 'xdb.vista..intern
>> al'
>> Tue Feb 20 20:24:30 2001 mio.c:898 mio_write called on x: 81F8D00 buffer: (nu
>>
>>
>> Jabber Server config:
>>
>> ....
>> <xdb id="xdb.vista.internal">
>> <host/>
>> <accept>
>> <ip/>
>> <port>5280</port>
>> <secret>secret</secret>
>> </accept>
>> </xdb>
>> ....
>>
>>
>>
>> xdb_file config:
>>
>> <jabber>
>>
>> <service id="xdb.vista.internal">
>> <host/>
>> <connect>
>> <ip>192.168.0.1</ip>
>> <port>5280</port>
>> <secret>secret</secret>
>> </connect>
>> </service>
>>
>> <log id='xdblog'>
>> <host/>
>> <format>%d: [%t] (%h): %s</format>
>> <file>./xdb-error.log</file>
>> <stderr/>
>> </log>
>>
>> <xdb id="xdb_handler">
>> <host>vista.internal</host>
>> <load><xdb_file>./xdb_file/xdb_file.so</xdb_file></load>
>> <xdb_file xmlns="jabber:config:xdb_file"><spool>./spool</spool></xdb_file>
>> </xdb>
>>
>> </jabber>
>>
>>
>> Regards,
>>
>> - Lg
>>
>> 2001-2-20 20:22:14
>>
>> --
>> Gang Liu / Vista Team / ShenZhen City / China
>> Email: gang_l at 21cn.com & gang_l at hotmail.com
>> Phone: +86 13923425035
>> ICQ: 70670666 Jabber: gang_l at jabber.org
>>
>>
>>
>>
>> _______________________________________________
>> jdev mailing list
>> jdev at jabber.org
>> http://mailman.jabber.org/listinfo/jdev
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.4 (GNU/Linux)
>Comment: For info see http://www.gnupg.org
>
>iD8DBQE6kulFmQjXLBmX48wRAh90AJ0VzDSlovEqXV+PovrsPNXvm1YcngCfeGmg
>UW0IiphfxeVlR5D4nTD39Mk=
>=XkG/
>-----END PGP SIGNATURE-----
Regards,
- Lg
2001-2-21 17:08:59
--
Gang Liu / Vista Team / ShenZhen City / China
Email: gang_l at 21cn.com & gang_l at hotmail.com
Phone: +86 13923425035
ICQ: 70670666 Jabber: gang_l at jabber.org
More information about the JDev
mailing list