ID:               31080
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jon at destra dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         FTP related
 Operating System: RedHat Linux Fedora Core 2
 PHP Version:      4.3.8
 New Comment:

What is the error it gives? (set error_reporting = E_ALL!)
Does the FTP server log have any clues why the connection fails? 
At what point of the connection does it fail? 

Put shortly: We need a lot more information!!

And how many files you HAVE open at the time of the failure?? ("lsof |
wc -l" command helps with that)



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

[2004-12-15 00:55:04] jon at destra dot com

Ahh, no I didn't.  I have more then enough file descriptors but PHP is
not using them.

[EMAIL PROTECTED] root]# cat /proc/sys/fs/file-max
32768

I suspect it is hard coding it's max number of file handles?

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

[2004-12-14 14:33:19] [EMAIL PROTECTED]

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.

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

[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

Reply via email to