<div dir="ltr">Hi,<div><br></div><div>I am working on the docker checkpoint/restore use CRIU, and the <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 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 uses 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 class="gmail_signature"><font color="#3333ff"><div><font color="#3333ff">Best Regards</font></div><div><font color="#3333ff">Cui Yanbao | 崔言宝</font></div><div><font color="#3333ff">--</font></div>龍生玖天,豈能安於凡塵!</font></div>
</div></div>