You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using nokogiri 1.4.1 on windows. I noticed that there is still a
system file handle lock after I've called
Nokogiri::XML::SAX::Parser:parse_file <file_name_string>. The file
handle is only closed when the ruby interpreter exits.
I tried Nokogiri::XML::SAX::Parser:parse_io but got the same behavior.
I had to use the below code to workaround the file handle leak:
file_handle = File.new(file_name)
begin
parser.parse_io(file_handle)
ensure
file_handle.close
end
The text was updated successfully, but these errors were encountered:
Hi,
From the mailing list (Guillaume gjeudy@gmail.com):
The text was updated successfully, but these errors were encountered: