<div dir="ltr">Hi Vlad,<div>Just tested the lastest sources and now the websocket connection isn't droped anymore if I use theĀ <span style="font-size:12.8000001907349px">tcp_persistent_flag!</span><br></div><div><span style="font-size:12.8000001907349px">Many thanks!</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Patrick</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 20, 2015 at 9:40 AM, Vlad Paiu <span dir="ltr"><<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I've just fixed on GIT the issue where the tcp_persistent_flag was
ignored for websocket TCP connections ( as of commit 320c825 ) -
please update your sources and the issue should be fixed, without
having to change the tcp_connection_lifetime.<br>
<br>
Best Regards,<br>
<pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre><div><div class="h5">
<div>On 19.05.2015 23:07, Patrick Wakano
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>More tests with WebRTC in Opensips 2.1 and I noticed that
the websocket connection of my browser was being disconnected
some time after it registered, this caused the javascript lib
to reconnect and re-register. This is not good because each
time it happens, the browser uses a new port and I get one
more contact to the same AOR in my location table...</div>
<div>Investigating the problem I noticed the websocket
connection was being dropped because the Opensips' TCP
connection lifetime was being reached and so it closed the
connection.</div>
<div>First thing I did was to use the tcp_persistent_flag from
the Registrar module. Unfortunately it didn't work.... So next
test was to increased the tcp_connection_lifetime parameter to
something greater than the Register expire time and luckly it
worked! The websocket connection wasn't dropped anymore!</div>
<div>Even though now things are working, I think we have some
bug in here...</div>
<div>I know the websocket runs over TCP but should it be ruled
by the tcp_connection_lifetime parameter? I was expecting some
independence, although I would completely understand if it is
not possible from the implementation point of view.</div>
<div>Despite that, considering websockets fall under the same
rules as TCP, then the tcp_persistent_flag should apply for it
too, right?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Patrick</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>