note 40384 deleted from function.fopen by nlopess
| From: | nlopess@php.net | Date: | Tue, 02 Mar 2004 15:21:12 +0000 |
| Subject: | note 40384 deleted from function.fopen by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66109@lists.php.net to get a copy of this message | ||
Note Submitter: bulanel@room666.biz
----
If you your apache is using more than 1024 fd per child(that will happen if there are more than
1024 virtuals and you have at least 1 log file per virt;1024 is usually the default FD_SETSIZE)
and you are doing something like:
$fd = fopen("www.gigel.com","r");
then is posible that fopen it will hang (waiting to return from select); The fix is to recompile
the kernel with bigger FD_SETSIZE and
change the include file that have it(/usr/src/sys/types.h in FreeBSD,
/usr/include/linux/posix_types.h or /usr/include/bits/typesizes.h in Linux)
and ... recompile php