etree.parse hangs with a lot of parallel requests
2008-04-01 14:13:03 GMT
Hi all, I'm using lxml-2.0_1 now (I have not upgraded since to most recent versions as I have not noticed any features relevant to me), libxml2-2.6.30 , libxslt-1.1.22, FreeBSD 6.2 and 7.0 , the application runs within mod_python / apache 2.2.8 . My situation is pretty straightforward: fetch xml as plain text via http, parse it and get etree object, than apply xslt and get resulting html. The code is the following: self.xmlParser = etree.XMLParser(no_network = False, resolve_entities = False, load_dtd = True ) I use load_dtd=True as sometimes I encounter html entities in my input data. They are included in my dtd in this way: <!ENTITY % HTMLlat1 SYSTEM "xhtml-lat1.ent"> %HTMLlat1; <!ENTITY % HTMLsymbol SYSTEM "xhtml-symbol.ent"> %HTMLsymbol; <!ENTITY % HTMLspecial SYSTEM "xhtml-special.ent"> %HTMLspecial; Then eventually it comes up to ... xmlres = etree.parse( StringIO.StringIO( reply['data'] ), self.xmlParser )(Continue reading)
RSS Feed