[OpenSIPS-Users] Increasing time to call new module´s method

Aldo Jose Spanghero Romao aromao at daitangroup.com
Mon Nov 12 19:23:56 CET 2012


Hi,

I´ve created a module that uses libcurl to send requests to a HTTP server.

The problem is that the time to the function 'curl_easy_perform' be called is increasing each time the method of the module is called.

I´ve made some profiling, and looks like 'all' opensips' processes are using the same instance of the module, calling the same function, and not each process having its own copy of the module.

This forces the next process to wait until the current one is finished the call to the 'curl_easy_perform' function.

Is there any way to force that each process uses its own copy of the module, so the calls can be performed in parallel?

Thank a lot for any tip!

Regards

Aldo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121112/eeeeb20e/attachment.htm>


More information about the Users mailing list