<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    thanks for troubleshooting further. I pushed a different patch, as
    your suggestion was causing to go again from the beginning of sent
    list each time, until there was no more sent-ok message.<br>
    <br>
    Can you try the patch from commit:<br>
    <br>
    -
<a class="moz-txt-link-freetext" href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5fd8a1bdaae82decdb606901fe7bf3e6e9149803">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5fd8a1bdaae82decdb606901fe7bf3e6e9149803</a><br>
    <br>
    If all ok, I will backport.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 02/09/14 09:36, Bhupendra Singh
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMZLHmkhYS1WDppRJODiZJX7KGJJwA7CfP=ZXAEbBknzV9zX+g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Folks, 
        <div><br>
        </div>
        <div>I found the root cause of this issue. </div>
        <div><br>
        </div>
        <div>In file ms_msg_list.c, issue is on line 290.</div>
        <div>(<a moz-do-not-send="true"
href="https://github.com/sipwise/kamailio/blob/master/modules/msilo/ms_msg_list.c">https://github.com/sipwise/kamailio/blob/master/modules/msilo/ms_msg_list.c</a>)<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><span class="" style="white-space:pre">Line 290: </span>p0
          = p0->next; </div>
        <div><br>
        </div>
        <div>should be like this below :</div>
        <div><br>
        </div>
        <div><span class="" style="white-space:pre"> </span>p0 =
          ml->lsent;<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>The issue is p0->next becomes null in first iteration so
          it won't process more than one element in 'while' loop. Hence
          this is the main cause of slowness of message deletion. </div>
        <div>I have tested modified code and it works fine now. </div>
        <div><br>
        </div>
        <div>Develoerps, </div>
        <div>Please review this change and advise accordingly.</div>
        <div><br>
        </div>
        <div>Thanks </div>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">On Mon, Aug 25, 2014 at 11:35 PM,
          Bhupendra Singh <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:bsingh@bsingh.net" target="_blank">bsingh@bsingh.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>Hi Guys,  </div>
              <div><br>
              </div>
              <div>Has anyone used/using offline message handling and
                storage in "silo" table?</div>
              <div>My  issue is cleanup of stored message is taking very
                long time specially when many messages are left for
                target users. </div>
              <div>After further investigation I realized, only one
                message gets deleted in one pass and next in next pass (
                after 30 second default timer). </div>
              <div>Is it intentional ? How can we make sure that all
                delivered messages get deleted right away for that
                user? </div>
              <div><br>
              </div>
              <div>Thanks</div>
              <div><br>
              </div>
              <div><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</pre>
  </body>
</html>