<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><tt>Hi, Agalya!</tt></p>
<p><tt>Regarding the 10s delay</tt><tt> </tt><tt>problem</tt><tt>,
a fix was pushed to <tt>the development</tt> branch [1]. </tt><tt>If
you are running on </tt><tt>2.1.4 git branch, could you please
</tt><tt>pull the latest changes (git pull --rebase), and </tt><tt>test
<tt>it out</tt></tt><tt>? </tt><tt>You can import <tt>it</tt>
with:</tt><tt><br>
</tt></p>
<p><tt>git cherry-pick -x 66c337c<tt>c</tt></tt></p>
<p><tt>[1]:
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/66c337cc89a2b5c3e1bbd78c289371efcda21886">https://github.com/OpenSIPS/opensips/commit/66c337cc89a2b5c3e1bbd78c289371efcda21886</a></tt><tt><br>
</tt></p>
<p><tt><tt>Best regards,</tt><br>
</tt></p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 07.09.2016 20:14, Ramachandran,
Agalya (Contractor) wrote:<br>
</div>
<blockquote
cite="mid:8c5b002247394c5f9ace76a6920d6f1b@COPDCEX28.cable.comcast.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle26
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle28
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle29
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle30
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:920869609;
        mso-list-template-ids:-1225891966;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1
        {mso-list-id:1313021204;
        mso-list-template-ids:2044479386;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:blue">Hi team,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Any clue on this
below topic would be a great. Am stuck with this 10 sec
delay and couldn’t move further.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">If I could be able
to find the root cause and resolve this , then only I can
implement REST API calls as async.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Because this 10
sec delay is a huge time. Please help me on this.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Agalya<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> Ramachandran, Agalya
(Contractor)
<br>
<b>Sent:</b> Tuesday, August 30, 2016 10:13 AM<br>
<b>To:</b> 'Liviu Chircu' <<a moz-do-not-send="true"
href="mailto:liviu@opensips.org">liviu@opensips.org</a>><br>
<b>Subject:</b> RE: FW: [OpenSIPS-Users] Asynchronous
operation for REST queries<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:blue">Hi Liviu,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">A clue for this 10
sec delay consumed by opensips before sending the HTTP
request, will be grateful for me. As far as I debugged this
delay is caused by curl library. But wondering what could be
the cause for this constant 10.25 sec delay.?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Please help me out
in this. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Agalya<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> Ramachandran, Agalya
(Contractor)
<br>
<b>Sent:</b> Friday, August 26, 2016 2:29 PM<br>
<b>To:</b> 'Liviu Chircu' <<a moz-do-not-send="true"
href="mailto:liviu@opensips.org">liviu@opensips.org</a>><br>
<b>Cc:</b> OpenSIPS users mailling list <<a
moz-do-not-send="true"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<b>Subject:</b> RE: FW: [OpenSIPS-Users] Asynchronous
operation for REST queries<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:blue">Hi Liviu, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Here is the dump
from the time when the socket is opened and when the request
sent out.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Highlighted in </span><span
style="color:red">RED color</span><span style="color:blue">.
Any clue for this 10 sec delay?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="color:red">17:29:56.430379
IP6 sturn-test.novalocal.44797</span></b><span
style="color:red">
</span>> destination.rtc.sys.comcast.net.webcache: Flags
[S], seq 3356294440, win 28800, options [mss 1440,sackOK,TS
val 3588300781 ecr 0,nop,wscale 7], length 0<o:p></o:p></p>
<p class="MsoNormal"> 0x0000: 6000 0000 0028 0640 2001
0558 fc0b 0100 `....(<a moz-do-not-send="true"
href="mailto:.@...X">.@...X</a>....<o:p></o:p></p>
<p class="MsoNormal"> 0x0010: f816 3eff fed5 0bfe 2001
0558 fc11 0000 ..>........X....<o:p></o:p></p>
<p class="MsoNormal"> 0x0020: f816 3eff fe11 d5aa aefd
1f90 c80c fd28 ..>............(<o:p></o:p></p>
<p class="MsoNormal"> 0x0030: 0000 0000 a002 7080 90bb
0000 0204 05a0 ......p.........<o:p></o:p></p>
<p class="MsoNormal"> 0x0040: 0402 080a d5e1 1fed 0000
0000 0103 0307 ................<o:p></o:p></p>
<p class="MsoNormal">17:29:56.436526 IP6
destination.rtc.sys.comcast.net.webcache >
sturn-test.novalocal.44797: Flags [S.], seq 4065018495, ack
3356294441, win 28560, options [mss 1440,sackOK,TS val
1771678349 ecr 3588300781,nop,wscale 9], length 0<o:p></o:p></p>
<p class="MsoNormal"> 0x0000: 6000 0000 0028 063a 2001
0558 fc11 0000 `....(.:...X....<o:p></o:p></p>
<p class="MsoNormal"> 0x0010: f816 3eff fe11 d5aa 2001
0558 fc0b 0100 ..>........X....<o:p></o:p></p>
<p class="MsoNormal"> 0x0020: f816 3eff fed5 0bfe 1f90
aefd f24b 427f ..>..........KB.<o:p></o:p></p>
<p class="MsoNormal"> 0x0030: c80c fd29 a012 6f90 755f
0000 0204 05a0 ...)..o.u_......<o:p></o:p></p>
<p class="MsoNormal"> 0x0040: 0402 080a 6999 aa8d d5e1
1fed 0103 0309 ....i...........<o:p></o:p></p>
<p class="MsoNormal">17:29:56.436575 IP6
sturn-test.novalocal.44797 >
destination.rtc.sys.comcast.net.webcache: Flags [.], ack 1,
win 225, options [nop,nop,TS val 3588300787 ecr 1771678349],
length 0<o:p></o:p></p>
<p class="MsoNormal"> 0x0000: 6000 0000 0020 0640 2001
0558 fc0b 0100 `......@...X....<o:p></o:p></p>
<p class="MsoNormal"> 0x0010: f816 3eff fed5 0bfe 2001
0558 fc11 0000 ..>........X....<o:p></o:p></p>
<p class="MsoNormal"> 0x0020: f816 3eff fe11 d5aa aefd
1f90 c80c fd29 ..>............)<o:p></o:p></p>
<p class="MsoNormal"> 0x0030: f24b 4280 8010 00e1 90b3
0000 0101 080a .KB.............<o:p></o:p></p>
<p class="MsoNormal"> 0x0040: d5e1 1ff3 6999
aa8d ....i...<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="color:red">17:30:06.667279
IP6 sturn-test.novalocal.44797</span></b><span
style="color:red">
</span>> destination.rtc.sys.comcast.net.webcache: Flags
[P.], seq 1:681, ack 1, win 225, options [nop,nop,TS val
3588311018 ecr 1771678349], length 680<o:p></o:p></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="mailto:PUT./RTCGSessionManager/rest/tel/session/createroom?uid=pp&custguid=1-32750@XX.YYY.231.239..HTTP/1.1..Host:.tr-sm-as-a-001.rtc.sys.comcast.net:8080..Accept:.*/*..Conten">PUT./RTCGSessionManager/rest/tel/session/createroom?uid=pp&custguid=1-32750@XX.YYY.231.239..HTTP/1.1..Host:.tr-sm-as-a-001.rtc.sys.comcast.net:8080..Accept:.*/*..Conten</a>
<a class="moz-txt-link-abbreviated" href="mailto:t-Type:.application/json..Uid:.pp..serviceId:.tel..custguid:.1-32750@96.119.231">t-Type:.application/json..Uid:.pp..serviceId:.tel..custguid:.1-32750@96.119.231</a>.
<a class="moz-txt-link-abbreviated" href="mailto:239...x-tracking-id:.820..X-Trace:.trace-id=1-32750@96.119.231.239...x-server-name:.RTCGSM..x-client-name:.IMS">239...x-tracking-id:.820..X-Trace:.trace-id=1-32750@96.119.231.239...x-server-name:.RTCGSM..x-client-name:.IMS</a><o:p></o:p></p>
<p class="MsoNormal"><a class="moz-txt-link-abbreviated" href="mailto:x-source-id:.OpenSIP..user-agent:.OpenSIPv1.11.3..device-id:.1-32750@XX.YYY.231">x-source-id:.OpenSIP..user-agent:.OpenSIPv1.11.3..device-id:.1-32750@XX.YYY.231</a>.
239...Content-Length:.211....{"participantsInfo"
:["2155551212"],"callType":"audio","instanceId": "<a
moz-do-not-send="true"
href="mailto:1-32750@XX.YYY.%20231.239.">1-32750@XX.YYY.
231.239.</a>","fromUID":"pp","fromTN":"pp","isOpenSipRequest":true,"
displayName":"Call.From.IMS","deviceType":"Android/iOS/STB/IMS"}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">17:30:06.672819 IP6
destination.rtc.sys.comcast.net.webcache >
sturn-test.novalocal.44797: Flags [.], ack 681, win 59,
options [nop,nop,TS val 1771688585 ecr 3588311018], length 0<o:p></o:p></p>
<p class="MsoNormal"> 0x0000: 6000 0000 0020 063a 2001
0558 fc11 0000 `......:...X....<o:p></o:p></p>
<p class="MsoNormal"> 0x0010: f816 3eff fe11 d5aa 2001
0558 fc0b 0100 ..>........X....<o:p></o:p></p>
<p class="MsoNormal"> 0x0020: f816 3eff fed5 0bfe 1f90
aefd f24b 4280 ..>..........KB.<o:p></o:p></p>
<p class="MsoNormal"> 0x0030: c80c ffd1 8010 003b c0cd
0000 0101 080a .......;........<o:p></o:p></p>
<p class="MsoNormal"> 0x0040: 6999 d289 d5e1
47ea i.....G.<o:p></o:p></p>
<p class="MsoNormal">17:30:06.778978 IP6
destination.rtc.sys.comcast.net.webcache >
sturn-test.novalocal.44797: Flags [P.], seq 1:358, ack 681,
win 59, options [nop,nop,TS val 1771688691 ecr 3588311018],
length 357<o:p></o:p></p>
<p class="MsoNormal"> 0x0000: 6000 0000 0185 063a 2001
0558 fc11 0000 `......:...X....<o:p></o:p></p>
<p class="MsoNormal"> 0x0010: f816 3eff fe11 d5aa 2001
0558 fc0b 0100 ..>........X....<o:p></o:p></p>
<p class="MsoNormal"> 0x0020: f816 3eff fed5 0bfe 1f90
aefd f24b 4280 ..>..........KB.<o:p></o:p></p>
<p class="MsoNormal"> 0x0030: c80c ffd1 8018 003b 8583
0000 0101 080a .......;........<o:p></o:p></p>
<p class="MsoNormal"> 0x0040: 6999 d2f3 d5e1 47ea 4854
5450 2f31 2e31 i.....G.HTTP/1.1<o:p></o:p></p>
<p class="MsoNormal"> 0x0050: 2032 3030 204f 4b0d 0a53
6572 7665 723a .200.OK..Server:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">…<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Regards,<br>
Agalya<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> Ramachandran, Agalya
(Contractor)
<br>
<b>Sent:</b> Friday, August 26, 2016 12:01 PM<br>
<b>To:</b> 'Liviu Chircu' <<a moz-do-not-send="true"
href="mailto:liviu@opensips.org">liviu@opensips.org</a>><br>
<b>Subject:</b> RE: FW: [OpenSIPS-Users] Asynchronous
operation for REST queries<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:blue">Hi Liviu, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">As I already
emailed you, to contribute the source code there is some
approval process in our organization.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">If that goes
though I can contribute the REST PUT code.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">But I have a
question in async operation in opensips.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">When a async mode
REST API is called either POST/PUT, I see that opensips
waits for 10 sec of time and then only it sends out the HTTP
request out to the network.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Why there is a
huge wait time of 10sec?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">When I tried to
debug, I found it is looping inside the below for loop for
long time in rest_methods.c file, (but all that looping are
taking same seconds, later 10 sec am getting HTTP response)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">for (i = 0; i <
busy_wait; i += check_time) {…..}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Wondering and
interested to know about this delay time.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Please bear some
of your time</span><span
style="font-family:Wingdings;color:blue">J</span><span
style="color:blue">. Thanks in advance.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Agalya<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> Liviu Chircu [</span><a
moz-do-not-send="true" href="mailto:liviu@opensips.org">mailto:liviu@opensips.org</a><span
style="color:windowtext">]
<br>
<b>Sent:</b> Thursday, August 18, 2016 10:14 AM<br>
<b>To:</b> Ramachandran, Agalya (Contractor) <</span><a
moz-do-not-send="true"
href="mailto:Agalya_Ramachandran@comcast.com">Agalya_Ramachandran@comcast.com</a><span
style="color:windowtext">><br>
<b>Subject:</b> Re: FW: [OpenSIPS-Users] Asynchronous
operation for REST queries<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><tt><span style="font-size:10.0pt">Hi Agalya,</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">I am very busy these days
and cannot afford to troubleshoot random problems with
libcurl usage. Do you intend to open source the PUT
function by making a Pull Request, after we fix it? If
yes, it will definitely go up in my priority queue.</span></tt><o:p></o:p></p>
<pre>Liviu Chircu<o:p></o:p></pre>
<pre>OpenSIPS Developer<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
</body>
</html>