#21653 [Com]: Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed
| From: | laudanp at yahoo dot com | Date: | Sat, 05 Jul 2003 17:32:47 +0000 |
| Subject: | #21653 [Com]: Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43301@lists.php.net to get a copy of this message | ||
ID: 21653
Comment by: laudanp at yahoo dot com
Reported By: support at hostcolor dot com
Status: Closed
Bug Type: Sockets related
Operating System: RedHat 7.2
PHP Version: 4.3.3RC2-dev
New Comment:
Well its Independence weekend in the USA today, so its party time.
Hopefully next week we can all get back to business. Happy Fourth all.
Previous Comments:
------------------------------------------------------------------------
[2003-07-04 10:40:09] developer at yecc dot net
HI ALL
I download php 5 and install it on my computer that have RH7.3 But
socket connection warning exists on php 5.
What I must do?
Developers of php what you do?
Are you ok?
------------------------------------------------------------------------
[2003-07-01 09:16:47] larry at bowenaero dot com
I'm also seeing this problem with SquirellMail 1.4.0 since my host
upgraded to 4.3.2. SM worked flawlessly before the upgrade. The
problem surfaces frequently, but with no obvious pattern.
http://BowenAero.com/p.php
Any help is appreciated.
-LB
------------------------------------------------------------------------
[2003-07-01 06:38:08] laudanp at yahoo dot com
Ok, I disabled any port blocking on my end this morning, and as it
turns out I get the same messages as when port blocking was on:
Warning: fsockopen(): unable to connect to xxx.xxx.xxx.xxx:21 in
/var/www/html/testpaul.php on line 134
Connection Refused: Port 21 used by Nerte 7.8.1.
This is odd indeed.
------------------------------------------------------------------------
[2003-06-30 08:27:35] laudanp at yahoo dot com
CORRECTION TO THIS:
So something is different between the TCP and UDP connections. Now,
I'm
running these scans from a box that is dropping the probes. Hence,
since UDP is connectionless and TCP is connection oriented, the bug
may
have something to do with this? I haven't tested it on a system that
is
not running a firewall recently. What do your tests show now with the
current snapshot?
------------
CORRECTED VERSION:
*... Now, I'm running these scans from the server against a system that
is dropping the probes via a firewall. ... I haven't tested it on a
system that is not protected by a firewall (or disabled it). What do
your tests show now with the current snapshot? ...*
-----
Thanks
------------------------------------------------------------------------
[2003-06-30 08:24:33] laudanp at yahoo dot com
Download: .bz2 (3.5M) .gz (4.3M)
Built On: Jun 30, 2003 11:30 GMT
php4-STABLE-200306301130
http://64.246.34.44/phpinfo.php
http://64.246.34.44/testpaul.php
Hi, I grabbed the latest stable cvs snapshot and it appears the problem
persists. Its the same code, no change, since I started using it prior
to PHP 4.2.3. For some reason, it doesn't work with 4.3.x.
Now, for my UDP scanner
(http://www.computercops.biz/modules.php?name=UDP_Scanner) on PHP 4.3.x
I use the following code which works well with either 4.2.3 or 4.3.x:
$handle = fsockopen($this-> targetIP, $portNumber, &$errno, &$errstr,
2);
For the TCP Scanner
(http://www.computercops.biz/modules.php?name=TCP_Scanner), I have this
line:
$handle = fsockopen($this-> targetIP, $index, $errno, $errstr, $this->
timeout);
So something is different between the TCP and UDP connections. Now,
I'm running these scans from a box that is dropping the probes. Hence,
since UDP is connectionless and TCP is connection oriented, the bug may
have something to do with this? I haven't tested it on a system that
is not running a firewall recently. What do your tests show now with
the current snapshot?
Thanks
(Phew, this is one elusive bug).
P.S. Here is my configure statement:
./configure --with-mysql --with-apxs --with-gd
--with-jpeg-dir=../jpeg-6b/ --with-zlib
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21653
--
Edit this bug report at http://bugs.php.net/?id=21653&edit=1