<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p dir="ltr">Wrong list, please use criu@openvz.org</p>
<div class="gmail_quote">On Jul 12, 2015 00:59, Yanbao Cui &lt;yygcui@gmail.com&gt; wrote:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am working on the docker checkpoint/restore use CRIU, and the&nbsp;<span style="color:rgb( 84 , 84 , 84 );line-height:18.2000007629395px">time consuming is the key point we concerned.</span></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px"><br>
</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px">I found a strange phenomenon that the created socket need additional&nbsp;at least 0.5 seconds to reconnect after the docker restore done.</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px"><br>
</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px">But if I create a new socket after restoring the docker , it will connect to the peer immediately.</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px"><br>
</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px">No matter the connection&nbsp;uses&nbsp;TCP or UDP.</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px"><br>
</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px">From the CRIU source code, I found that it will create a new socket with SO_REUSEADDR, and change the original fd to this new one. but I have no idea that why it need more time to recovery.</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px"><br>
</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px">Could someone help me to explain it or give me some points?</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px"><br>
</span></font></div>
<div><font color="#545454"><span style="line-height:18.2000007629395px">Thanks very much!<br clear="all">
</span></font>
<div><br>
</div>
-- <br>
<div><font color="#3333ff"></font>
<div><font color="#3333ff">Best Regards</font></div>
<div><font color="#3333ff">Cui Yanbao | 崔言宝</font></div>
<div><font color="#3333ff">--</font></div>
龍生玖天,豈能安於凡塵!</div>
</div>
</div>
</div>
</blockquote>
</div>
</body>
</html>