Thread
Thread Index
Message
On Tue, Apr 15, 2008 at 03:35:35PM -0400, Cary Fitzhugh wrote:
> If I create a zip file with 500 or so entries when I call zip_close it
> returns an error, but has used up all of my file handles on a WinXP box.
> So in that particular process I can no longer open any new files.
>
> Any chance this is a bug in libzip - or is it just a FS limitation that
> I could get around by opening/closing the file a few times?
It is a bad design desicion in libizp, aggravated by Window's low
limit on open files.
libzip opens files added via zip_source_file when they are added and
keeps them open until zip_close is called. We will change this to
only keep the files open in zip_close while we actually read them.
We'll probably add a flag to zip_source_file to restore the old
behaviour.
yours,
dillo
Made by MHonArc.
|