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 EEFAE3A5C63 for ; Sat, 4 Dec 2004 18:36:20 +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 42237-02 for ; Sat, 4 Dec 2004 18:36:15 +0000 (GMT) Received: from ngate.rdw.ru (mail.rdw.ru [195.42.172.4]) by svr1.postgresql.org (Postfix) with ESMTP id 3D1583A5C1E for ; Sat, 4 Dec 2004 18:36:13 +0000 (GMT) Received: (qmail 446 invoked by uid 50004); 4 Dec 2004 18:36:11 -0000 Received: from 192.168.0.57 by ngate.rdw.ru (envelope-from , uid 100) with qmail-scanner-1.23 ( Clear:RC:1(192.168.0.57):. Processed in 0.056204 secs); 04 Dec 2004 18:36:11 -0000 X-Qmail-Scanner-Mail-From: borz_off@cs.msu.su via ngate.rdw.ru X-Qmail-Scanner: 1.23 (Clear:RC:1(192.168.0.57):. Processed in 0.056204 secs) Received: from senoval.rdw.ru ([192.168.0.57]) (envelope-sender ) by ngate.rdw.ru (qmail-ldap-1.03) with compressed SMTP for ; 4 Dec 2004 18:36:11 -0000 Received: (qmail 12182 invoked from network); 4 Dec 2004 18:36:11 -0000 Received: from ppp01.rdw.ru (HELO [192.168.0.7]) ([192.168.0.7]) (envelope-sender ) by senoval.rdw.ru (qmail-ldap-1.03) with SMTP for ; 4 Dec 2004 18:36:10 -0000 Message-ID: <41B2035B.8020208@cs.msu.su> Date: Sat, 04 Dec 2004 21:35:07 +0300 From: Alexey Borzov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Dave Page Cc: pgsql-www@postgresql.org Subject: Re: Mirror.php References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.331 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/63 X-Sequence-Number: 6182 Hi, Dave Page wrote: > 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 = 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 :-) ::scratches head:: Well, the PEAR code boils down to the example above if you strip all the pretty stuff out. Please try running the following script, maybe it will give some insight: sendRequest(); ?>