Re: HTML::Parser is not thread-safe
Father Chrysostomos <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
On Jan 12, 2007, at 3:12 AM, Gisle Aas wrote: > On 1/11/07, Gisle Aas <[email protected]> wrote: >> Anybody with threads know-how that can help? > > Bo Lindbergh provided a patch that fixes this problem and > HTML-Parser-3.56 has now been uploaded to CPAN with this fix. Thanks > Bo! > > --Gisle That was quick. Thank you! It seems to work fine now, except that, if a Parser object is created within a thread *other than* the main thread, perl complains about leaking scalars when the program exits. $ perl -MHTML::Parser -Mthreads -le'(async{new HTML::Parser})->join; END { print "end" }' end Scalars leaked: 1 But if the object is created in the main thread, there are no error messages at all. Father Chrysostomos P.S.: I am not trying to put pressure on anyone--this module works well enough for me as it is. I am simply trying to help by pointing out bugs.