View Single Post
puga4off
Junior Member
Join Date: Nov 2013
Old 11-15-2013 , 10:33   Re: [EXTENSION] cURL & Hash
Reply With Quote #89

i have very interesting result. i wrote this functions to know what is happening with curls.

PHP Code:
MyCurlCreateHandle()
{
    new 
Handle:curl curl_easy_init();
    
PrintToServer("curl address %d"curl);
    return 
curl;
}

MyDeleteCurlHandle(Handle:curl)
{
  
PrintToServer("delete curl address %d"curl);
  
CloseHandle(curl);

And i noticed, that after 500 times creating and using function "curl_easy_perform_thread" sourcemod doesn't want to delete curls handles, only create. and then ofcourse after creating some handles there are memory leak("out of memory"). The question is why sourcemod doesn't want to execute curl by threads. I tested and found if i executed curl without threads , it works. but you understand, that i can't do it Please help

Last edited by puga4off; 11-15-2013 at 10:37.
puga4off is offline