fdopen usage in innfeed

Per Hedeland per at erix.ericsson.se
Tue Jan 4 09:08:52 UTC 2000


>Probably someone already has seen before and I've seen
>tons of;
>
>Jan  4 13:15:57 inn innfeed[6071]: ME error opening temp shrink file : No such file or directory
>
>This is happened because innfeed uses 'fdopen' to open
>new tape file and the number of opened files is over 255.

If your stdio implementation can't handle fds over 255, you should use

            stdio-fdmax:        256

in innfeed.conf (yes, it should be 256, but 255 should work too:-). It
makes it dup the socket descriptors (which don't use stdio) to above (or
equal to) this value. Of course if you have more than 256 (or probably
128) feeds handled by one innfeed process (poor you:-), this doesn't
help...

>Has anyone fixed this?  I'll try to modify the code to
>use open() instead of fdopen(), if no one has.

I don't believe this is needed.

All of the above is with a rather-less-than-recent innfeed version, but
it hasn't changed AFAIK.

--Per Hedeland
per at erix.ericsson.se



More information about the inn-workers mailing list