X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C21B93A5C25 for ; Sat, 4 Dec 2004 13:31:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 49028-05 for ; Sat, 4 Dec 2004 13:31:45 +0000 (GMT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by svr1.postgresql.org (Postfix) with ESMTP id B6D2E3A5C09 for ; Sat, 4 Dec 2004 13:31:45 +0000 (GMT) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=ratbert.vale-housing.co.uk) by anchor-post-33.mail.demon.net with esmtp (Exim 4.42) id 1Caa0n-000CMs-Cd for pgsql-www@postgresql.org; Sat, 04 Dec 2004 13:31:45 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: Re: Mirror.php Date: Sat, 4 Dec 2004 13:31:45 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Mirror.php Thread-Index: AcTZ8zfPia7o3AllT3SMmWQsl6hkjgADmlog From: "Dave Page" To: "Alexey Borzov" Cc: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/62 X-Sequence-Number: 6181 =20 > -----Original Message----- > From: Alexey Borzov [mailto:borz_off@cs.msu.su]=20 > Sent: 04 December 2004 11:19 > To: Dave Page > Cc: pgsql-www@postgresql.org > Subject: Re: Mirror.php >=20 > I think the script cannot open a socket to=20 > wwwmaster.postgresql.org. I am not quite sure why, but=20 > googling for this error message brought up several pages on=20 > incorrectly setup IPv6. That's your box, so only you can=20 > 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 =3D fopen("http://wwwmaster.postgresql.org/", "r"); while (!feof($fp)) { echo fgets($fp, 500); } fclose($fp); And $fp =3D fsockopen("wwwmaster.postgresql.org", 80); $out =3D "GET / HTTP/1.1\r\n"; $out .=3D "Host: wwwmaster.postgresql.org\r\n"; $out .=3D "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.