<div dir="ltr">Hi,<div><br></div><div>I am having a problem using the &quot;exec&quot; function to run a curl command. Every time the function is executed it opens a file and never close it. </div><div><br></div><div>I have example config as follows. I am using Opensips 2.1.  </div><div><div>------------------</div><div>$var = &quot;<a href="http://myserver/var/tmp/test.php">http://myserver/var/tmp/test.php</a>&quot;;</div><div>exec(&quot;curl &#39;$var(url)&#39;&quot;, , &quot;$var(out)&quot;);<br></div><div>------------------<br></div></div><div><br></div><div>This results in that the number of open files reaches the system limit and the Opensips process crashes eventually. To workaround it I have to restart Opensips whenever the number of open files reaches 75% of the system limit. </div><div><br></div><div>Has anyone seen the same issue?  Is there any solution for this? </div><div><br></div><div>Thanks,</div><div>Ping</div></div>