Package: php5-imap
Version:  5.2.5-3
Severity: normal

When there are more than 1024 opened file by apache process,
[such as two logs (error+access) for 512 pcs virtualhosts), then
a php code running a
   imap_open("{127.0.0.1:110/pop3/notls/debug/user=test}INBOX",  ...
results in:

[Fri Apr 25 15:34:13 2008] [error] [client 127.0.0.1]
PHP Warning:
imap_open() [<a href='function.imap-open'>function.imap-open</a>]:
Couldn't open stream {127.0.0.1:110/pop3/notls}INBOX
in /var/www/test/PEAR/Mail/IMAPv2.php on line 369

Getting more info by "print imap_last_error();" results in:
[2008-04-25 15:34] Unable to create selectable TCP socket (1054 >= 1024)

notes:
a) the "Unable to create selectable TCP socket" can be found in
   libc-client.so.2007 --- "UW c-client library for mail protocols"
[ http://packages.debian.org/lenny/libc-client2007 ] b) apache have no problem opening 1024+ log files, nor any other
   php scripts using file opens - only imap_open
c) I have ulimit on 2048, not the default 1024 (otherwise apache
   couldn't make it as well)
d) the very same script containing imap_open works excellently
   when there are less than 1024 files opened by its apache process
e) google gives that others have/had similar problem (no resolutions),
   probably not distribution dependent - upstream?
f) versions doesn't seem to matter, but for the records, it is debian
testing (lenny) with apache2.2 2.2.8-3 / php5 5.2.5-3 / libc-client2007 (7:2007~dfsg-1)




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to