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