[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xmlParseMemory

  • To: xml-dev@l...
  • Subject: xmlParseMemory
  • From: Hector DUQUE <Hector.Duque@c...>
  • Date: Thu, 11 Dec 2003 18:15:09 +0100
  • Organization: creatis
  • Reply-to: Hector.Duque@c...
  • User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

xmlparsememory
hi guys,
i am not sure if this is right list, but anyway, let me share with you a 
problem. I am developing a big distributed system, as Ph.D. job, and 
i'am using xml for parsing incoming messages.

All the messages arrive to a daemon which parse them using 
xmlParseMemory after forking a process. Everything works fine, but i 
have a trouble when testing stressing behavior; i mean when a lot of 
messages comes to the daemon with an small interval of time (less than 
0.2 seconds). What happens is that sometimes xmlParseMemory returns 
NULL. I am sure that the input parameter has the xml message, and the 
problem disappear when a waiting time (sleep 0f 0.2 seconds) is included 
between messages.


    doc = xmlParseMemory((char *)out, strlen(out));

    if (doc == NULL ) {

       // sometimes falls here ;-((

        hD_logerror("%s: xml_msg not handled successfully\n", I_AM_TAG);
        query_rspn(hD_E_XML_FAIL_CH, hD_E_XML_FAIL400_CH, "DM2 xml_msg 
not handled successfully", response_xml);
        xmlFreeDoc(doc);
        return (-1);
    }

i use red hat 7-3 and
libxml2-2.4.10

any idea ?
have you heard about it before ?

thanks in advance,

Hector

-- 
             \\\|//  /                               Creatis/LIRIS 
            \\ ~ ~ //
            (/ @ @ /)                         INSA, bât. B. Pascal
----------oOOo-(_)-oOOo-------------------------------------------
                        7 av.J.Capelle; F-69621 Villeurbanne Cedex
        
        oooO 	                         tel: +33 (0)4 72 43 82 26         
       (   )   Oooo         http://www.creatis.insa-lyon.fr/~duque     
--------\ (----(   )----------------------------------------------
France   \_)    ) /                                   Hector DUQUE    
               (_/



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.