Re: Mirror.php

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Mirror.php
Дата
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E4527CC1@ratbert.vale-housing.co.uk
обсуждение исходный текст
Ответ на Mirror.php  ("Dave Page" <dpage@vale-housing.co.uk>)
Ответы Re: Mirror.php  (Alexey Borzov <borz_off@cs.msu.su>)
Список pgsql-www

> -----Original Message-----
> From: Alexey Borzov [mailto:borz_off@cs.msu.su]
> Sent: 04 December 2004 11:19
> To: Dave Page
> Cc: pgsql-www@postgresql.org
> Subject: Re: Mirror.php
>
> I think the script cannot open a socket to
> wwwmaster.postgresql.org. I am not quite sure why, but
> googling for this error message brought up several pages on
> incorrectly setup IPv6. That's your box, so only you can
> probably know in which particular way it is misconfigured.

My box, your code! :-) I saw you wrote the Pear modules as well. Anyway,
I noticed the ipv6 stuff as well, but IPv6 is not even installed on that
box. It's not included as a kernel module or compiled in.

I hacked up the following test programs:

  $fp = fopen("http://wwwmaster.postgresql.org/", "r");
  while (!feof($fp))
  {
      echo fgets($fp, 500);
  }
  fclose($fp);

And

  $fp = fsockopen("wwwmaster.postgresql.org", 80);
  $out = "GET / HTTP/1.1\r\n";
  $out .= "Host: wwwmaster.postgresql.org\r\n";
  $out .= "Connection: Close\r\n\r\n";

  fwrite($fp, $out);
  while (!feof($fp)) {
     echo fgets($fp, 128);
  }
  fclose($fp);

Both of which work exactly as expected on wwwmaster, which is fairly
conclusive that the ipv4 sockets and http code in fopen are working fine
- so, any idea what it is that the Pear code might be doing that is
throwing this error? If we can figure that out, I stand more of a chance
of solving the problem :-)

Regards, Dave.

В списке pgsql-www по дате отправления:

Предыдущее
От: Alexey Borzov
Дата:
Сообщение: Re: Mirror.php
Следующее
От: Alexey Borzov
Дата:
Сообщение: Re: Mirror.php