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-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to