[JDEV] some questions about xdb and transport
Gang Liu
gang_l at 21cn.com
Mon Jun 4 08:43:18 CDT 2001
Hi,
I use RedHat 6.1 and Jabber server 1.4.1 from cvs.
I am doing some study in xdb backend and my own transport.I have changed xdb config in jabber.xml.
<xdb id="xdblinker">
<host>vista.internal</host>
<ns>jabber:iq:auth</ns>
<accept>
<ip/>
<port>5280</port>
<secret>secret</secret>
</accept>
</xdb>
The xdblinker is a program in another host.It can handle "jabber:iq:auth" correctlly. I also add a transport to jabberd.The transport reveives message packets from user A, reply the packet and forward to another user B.
I found jabberd always huangup servel seconds when user b is offline.I have used tcpdump to view the network traffic.
I found that jabberd sent nothing to xdblinker.Xdblinker received those packets together after severl seconds,but the xdb_get() already timed out.
Mon Jun 4 18:55:55 2001 users.c:137 js_user(11111 at vista.internal,8120678)
Mon Jun 4 18:55:55 2001 users.c:144 js_user not current
Mon Jun 4 18:55:55 2001 deliver.c:460 DELIVER 2:vista.internal <xdb type='get'
to='11111 at vista.internal' from='sessions' ns='jabber:iq:auth' id='10'/>
Mon Jun 4 18:55:55 2001 deliver.c:649 delivering to instance 'xdblinker'
Mon Jun 4 18:55:55 2001 mio.c:929 mio_write called on x: 81D7A28 buffer: (null
)
Mon Jun 4 18:55:55 2001 xdb.c:201 xdb_get() waiting for 11111 at vista.internal j
abber:iq:auth
Mon Jun 4 18:56:09 2001 deliver.c:460 DELIVER 2:vista.internal <xdb type='get'
to='11111 at vista.internal' from='sessions' ns='jabber:iq:auth' id='10'/>
Mon Jun 4 18:56:09 2001 deliver.c:649 delivering to instance 'xdblinker'
Mon Jun 4 18:56:09 2001 mio.c:929 mio_write called on x: 81EC630 buffer: (null
)
Mon Jun 4 18:56:20 2001 deliver.c:460 DELIVER 2:vista.internal <xdb type='get'
to='11111 at vista.internal' from='sessions' ns='jabber:iq:auth' id='10'/>
Mon Jun 4 18:56:20 2001 deliver.c:649 delivering to instance 'xdblinker'
Mon Jun 4 18:56:20 2001 mio.c:929 mio_write called on x: 81D9FA0 buffer: (null
I am looking forward for suggestions from you all... Thanks.
Regards,
- Lg
2001-6-4 21:18:00
--
Gang Liu / Vista Team / ShenZhen City / China
Email: gang_l at 21cn.com & gdlg at 163.net
Phone: +86 13923425035
ICQ: 70670666
--
"Java Club"<javaclub at list.sohu.com>
http://list.sohu.com/mailinglist/javaclub/
More information about the JDev
mailing list