- From: Sandesh Anvekar <sanvekar@controlnet.co.in>
- Date: Thu, 20 Jan 2005 14:15:06 +0530
- To: <www-lib@w3.org>
- Message-ID: <043301c4fecc$579013a0$9b0aa8c0@sandesh>
Hi All, I have come across a strange memory leak issue in libwww. It occurs when I make continuos HTTPS requests to a destination server. I made slight modifications to the wwwssl.c provided with the sample examples. Instead of just making one request I am making continuous requests. I have compiled xray with openssl 0.9.7a ( I also tried with 0.9.6b) for (;;) { request = HTRequest_new(); HTRequest_addConnection(request, "close", ""); HTRequest_setOutputFormat(request,WWW_SOURCE); /* Start the load */ chunk = HTLoadToChunk(getme, request); if (chunk) HTRequest_setContext(request,chunk); /* Go into the event loop... */ //HTEventList_loop(request); sleep(1); } *I guess there is no need of event loop as HTTPS is preemptive. When I run this code and monitor the memory status I find that there is a continuous memory leak in this code. Eventually it exhauts all the memory and crashed my system. BUT the strange part of this is that it happens only if I get 200 as the response. If I request the non existing page ie 404 this behaviour does not repeat. Also this behaviour does not repeat for HTTP requests. Could someone help me to find out the problem? Regards, Sandesh Anvekar Project Engineer ControlNet (I) Pvt. Ltd. L-44, Unit-1, STP, Verna Ind Estate Verna - Goa
Received on Thursday, 20 January 2005 19:23:56 UTC