[JDEV] Jabber Server faild in testing
Gang Liu
gang_l at 21cn.com
Sat Jan 6 04:24:56 CST 2001
Hi,
----- Original Message -----
From: David Waite<dwaite at jabber.com>
To: jdev<jdev at jabber.org>
Sent: 2001-1-5 9:05:00
Subject: Re: [JDEV] Jabber Server faild in testing
>Just brief observations:
>
>first, try removing this line:
>
> <host><jabberd:cmdline flag="h"/></host>
>
>If you do not specify a server on the command-line, it will insert a null host tag, meaning that the session manager should consider all traffic as local. The
>session manager is probably what is crashing, due to this.
ok, I will try it.
>
>Also, you may wish to remove this line as well:
>
> <host>192.168.0.2</host>
>
>Jabber is a DNS-based system, and thus you should use DNS names and not IPs on the server. Simple solution if you do not have a local DNS server is to modify
>/etc/hosts on all the systems (even windows systems have this file)
I know that.So I setup my localhostname which is dev.vista.internal."<host>dev.vista.internal</host>"
But I have to add "<host>192.168.0.2</host>" in the jabber.xml when I do tests.Because the simulator program does not understand the host name.It tells jabberd test user's name is r0001 at 192.168.0.2, not r0001 at dev.vista.internal.
Now I run tests again after I remove "<host>192.168.0.2</host>" and "<host><jabberd:cmdline flag="h"/></host>". I also modify simulator program source to let it understand domain name.I will post result later.
in simulate3.c:
1. add a function
/*
* Address Conv
* param address is a string which can be standard numbers-and-dots notation
* or FQDN domain name.
* Return Value:
* 0 success
* -1 error
*/
static int addr_conv(char * address, struct in_addr * inaddr)
{
struct hostent * he;
if (inet_aton(address, inaddr))
{
return 0;
}
he = gethostbyname(address);
if (he != NULL)
{
* inaddr = *(struct in_addr *)(he->h_addr_list[0]);
return 0;
} else
return -1;
}
2. modify init()
memset(&addr,0,sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
/* ia.s_addr = inet_addr(server); */
addr_conv(server, &ia); /* Modify by Gang Liu */
addr.sin_addr = ia;
Regards,
- Lg
2001-1-6 17:32:51
--
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