#31080 [Opn->Bgs]: ftp_connect() fails on a system where there is a large number of open files.

From: Date: Tue, 14 Dec 2004 13:34:12 +0000
Subject: #31080 [Opn->Bgs]: ftp_connect() fails on a system where there is a large number of open files.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70208@lists.php.net to get a copy of this message
 ID:               31080
 Updated by:       derick@php.net
 Reported By:      jon at destra dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         FTP related
 Operating System: RedHat Linux Fedora Core 2
 PHP Version:      4.3.8
 New Comment:

You just run out of filedescriptors. This is not something PHP can fix
for you. You either need to cut down in the number of Open files, or
adjust your kernel parameters.


Previous Comments:
------------------------------------------------------------------------

[2004-12-14 04:12:42] jon at destra dot com

Description:
------------
ftp_connect fails on a server with a large number of open files.

Eg.  In a virtual hosting environment where Apache has 1000+ log files
open.



Reproduce code:
---------------
$ftp1 = ftp_connect('127.0.0.1') or die("Couldn't connect to server");


Expected result:
----------------
Established connection with a handle via $ftp1.

Actual result:
--------------
The connection fails.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31080&edit=1


Thread (12 messages)

« previous php.bugs (#70208) next »