Re: [mp2] make test errors

[prev] [thread] [next] [Date index for 2005/02/17]

From: Stas Bekman
Subject: Re: [mp2] make test errors
Date: 23:21 on 17 Feb 2005
William McKee wrote:
> On Wed, Feb 16, 2005 at 07:14:24PM -0500, Stas Bekman wrote:
> 
>>>Yes, it is (though keep in mind that this is a virtual server running as
>>>a jailed process, not a separate machine).
>>
>>That could be the reason.
> 
> 
> But if I open a lynx session and surf over to localhost, my server comes
> up fine.

I've never said it was wrong. As you know when you assign your machine an 
IP, it can still internally be accessed by loopback device which is always 
127.0.0.1 or ::1 on ipv6 machines.

>>Well, basically you want to figure out how to make Apache-Test see the 
>>same value as Apache. i.e. teach our_remote_addr() to get the same value.
> 
> 
> It's Apache::Connection which defines the remote_ip() function that is
> getting the full ip, as opposed to our_remote_addr() which gets the
> ip defined by localhost (127.0.0.1).
> 
> Since the test is for pnotes, we could change the test. However, I
> suspect it'd be better to figure out what's causing the difference
> between the two functions. Is this the right place to file a bug report
> against Apache::Connection?

There is no problem with Apache::Connection. There is no "problem" at all. 
As explained above both are correct. For the sake of the test all we want 
is that they agree. That's why I have asked you to figure out how to match
our_remote_addr() with remote_ip(), since the latter can't be changed.

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

(message missing)

[mp2] make test errors
William McKee 19:37 on 13 Feb 2005

Re: [mp2] make test errors
Stas Bekman 23:41 on 15 Feb 2005

Re: [mp2] make test errors
William McKee 13:32 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 14:33 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 15:44 on 16 Feb 2005

Re: [mp2] make test errors
Stas Bekman 21:12 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 22:21 on 16 Feb 2005

Re: [mp2] make test errors
Stas Bekman 21:06 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 22:46 on 16 Feb 2005

Re: [mp2] make test errors
Stas Bekman 00:14 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 14:05 on 17 Feb 2005

Re: [mp2] make test errors
Stas Bekman 23:21 on 17 Feb 2005

Re: [mp2] make test errors
Stas Bekman 21:08 on 16 Feb 2005

Re: [mp2] make test errors
William McKee 22:26 on 16 Feb 2005

Re: [mp2] make test errors
Stas Bekman 00:12 on 17 Feb 2005

Re: [mp2] make test errors
Joe Orton 10:39 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 14:18 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 14:16 on 17 Feb 2005

Re: [mp2] make test errors
Joe Orton 16:53 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 20:05 on 17 Feb 2005

Re: [mp2] make test errors
Stas Bekman 23:27 on 17 Feb 2005

Re: [mp2] make test errors
William McKee 17:11 on 18 Feb 2005

Re: [mp2] make test errors
Stas Bekman 22:32 on 18 Feb 2005

Re: [mp2] make test errors
Jie Gao 22:37 on 18 Feb 2005

Re: [mp2] make test errors
William McKee 10:39 on 02 Jun 2005

Re: [mp2] make test errors
Joe Orton 13:40 on 18 Feb 2005

Re: [mp2] make test errors
William McKee 15:15 on 18 Feb 2005

Re: [mp2] make test errors
William McKee 20:07 on 18 Feb 2005

Re: [mp2] make test errors
Stas Bekman 22:35 on 18 Feb 2005

Re: [mp2] make test errors
Stas Bekman 23:08 on 18 Feb 2005

Re: [mp2] make test errors
Joe Orton 09:54 on 24 Feb 2005

Re: [mp2] make test errors
Stas Bekman 05:09 on 25 Feb 2005

Generated at 20:12 on 05 Jun 2005 by mariachi v0.52