[libxml-devel] [ libxml-Bugs-28693 ] Too many open files after many calls to Document.file

3 views
Skip to first unread message

nor...@rubyforge.org

unread,
Apr 23, 2011, 1:54:07 AM4/23/11
to nor...@rubyforge.org
Bugs item #28693, was opened at 2010-11-06 09:17
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=28693&group_id=494

Category: General
Group: None
Status: Open
>Resolution: Accepted
Priority: 3
Submitted By: James Pharaoh (jamespharaoh)
>Assigned to: Charlie Savage (cfis)
Summary: Too many open files after many calls to Document.file

Initial Comment:
Making a lot of calls to Document.file will result in a "too many open files error". I think what is happening is that the parser isn't cleaned up until it is finalized by garbage collection. Calling GC.start from time to time supresses this error and is a workaround.

Really there should be a way of telling the parser to clean up its resources, and convenience methods such as Document.file should be using it. Perhaps even the parser should be expected to clean up its resources as soon as the document is parsed, I'm not entirely sure.

----------------------------------------------------------------------

You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=28693&group_id=494
_______________________________________________
libxml-devel mailing list
libxml...@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply all
Reply to author
Forward
0 new messages