Hi,
We have run into the problem of uw-imap limit's of open files.
I don't know whether it happens under "normal" uw-imap usage,
but it does happen when uw-imap is used by apache->php5->
php5-imap, and "parent" has more than 1024 files opened,
which can easily happen, eg. apache runs with 512+ virtualhosts
with 2 log files (access/error log) each, etc. [apache et al have
no problem opening larger number of files - they use system
ulimit values]
The code area where it happens is at around line 255 of file
/src/osdep/unix/tcp_unix.c
[in imap-2007b.DEV.SNAP-0805082021.tar.Z]
which says:
else if (sock >= FD_SETSIZE) {/* unselectable sockets are useless */
sprintf (tmp,"Unable to create selectable TCP socket (%d >= %d)",
sock,FD_SETSIZE);
This would result in "Unable to create selectable TCP socket"
message, when sock is above/equal 1024 [posix's fd_setsize value].
I'm not a programmer, but as far as I know, if you don't use
[lib's] select(), but poll() for example, then you can open pretty
much as many files as you can (till system limit).
Of course if there are select()-s then it is a deeper "problem"...
More details can be read at my bug report to debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478193
And also many others ran into this, but they couldn't trace
the main cause of this problem, just google for the error
message, and add a "-funk" (my family name) to exclude
my bugreport (archived by many) from the results. Eg.:
google for:
"Unable to create selectable TCP socket" -"funk"
Still like ~205 hits found.
Cheers, G.
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw