Re: socket with gdome_di_createDocFromURI()
Luca Padovani <[email protected]> Thu, 02 Dec 2004 10:40:50 +0100
| Newsgroups | gmane.comp.gnome.gdome |
|---|---|
| Message-ID | <1101980450.4362.10.camel@giraffe> |
Hi, On Thu, 2004-12-02 at 10:26 +0100, scetre wrote: > Does gdome_di_createDocFromURI () closed the socket? uhm... gdome_di_createDocFromURI is just a wrapper for some libxml2 parsing functions. In particular, it either calls xmlParseFile or xmlRecoverFile. Both these functions are self-contained, meaning that they take a URL and return a libxml2 tree. Hence, I assume that if they open a socket, they close it when they're finished. If they don't, there's nothing that gdome2 can do to close them. Have you tried to use the xmlParseFile method directly? In that case, do you still get a number of open sockets? Cheers, --luca