<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi Brett,<br>
      <br>
      no, there is no timeout for the lock. so, if you are not careful
      in releasing the lock, you are a dead man with a dead opensips :).<br>
      <br>
      We plan to add some mechanism to check and cleanup locks after the
      route is ended, but this requires some extra work in the core part
      (some callbacks to give access to executing any kind of route).<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 11/28/2012 06:55 PM, Brett Nemeroff wrote:
    <blockquote
cite="mid:CAPwC5wxR2FgnMwaQ6xjhyiOEL=1a6GPuucSYcUgKpoh7bhqv9g@mail.gmail.com"
      type="cite">Liviu,
      <div>This is a good idea. What happens to the child process as
        it's waiting for a lock to be released? Are there any
        protections against locks lasting indefinitely?&nbsp;</div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div>Brett</div>
      <div><br>
        <br>
        <div class="gmail_quote">On Wed, Nov 28, 2012 at 9:02 AM, Liviu
          Chircu <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <br>
            The cfgutils module now provides the possibility of defining
            atomic<br>
            test-and-set operations in the OpenSIPS script.<br>
            Such need is a result of complex mixing in script of various<br>
            functionality / functions from different modules. Like
            testing<br>
            is done based on ratelimit module and the setting is done in<br>
            dialog module.<br>
            <br>
            Modules do provide internal locking and synchronization for
            their<br>
            own functionalities, but cannot cover a more complex and
            various<br>
            scenarios of test-and-set scripting scenarios.<br>
            <br>
          </blockquote>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>