[JDEV] Bug in base_accpet?

Keith Minkler kminkler at jabber.com
Tue Feb 20 16:01:42 CST 2001


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20010220/47d5c401/attachment-0002.pgp>


More information about the JDev mailing list