<div class="zcontentRow"><p style="font-size:14px;font-family:arial;">Hi,<br></p><p style="font-size:14px;font-family:arial;">I have a script runs two successive reloads, the first one is to remove a listen port from the stream block, and the second one is to add the same port back to the <span style="font-family: arial; line-height: 21px;">stream block. It is observed that most time the script would run into "bind() xxxx failed, Address already in use" error. After putting a sleep 1 in between these two reloads I never get that error again. </span></p><p style="font-size:14px;font-family:arial;"><span style="font-family: arial; line-height: 21px;">So I guess the listening socket was not released in the time the second reload was issued? </span></p><p style="font-size:14px;font-family:arial;"><span style="font-family: arial; line-height: 21px;">How the <span style="font-family: arial; line-height: 21px;">listening socket is getting released during reload?</span></span></p><p style="font-size:14px;font-family:arial;"><span style="font-family: arial; line-height: 21px;"><span style="font-family: arial; line-height: 21px;">In this case, how to ensure that we can safely trigger the second reload other than sleep?</span></span></p><p style="font-size:14px;font-family:arial;"><span style="font-family: arial; line-height: 21px;"><span style="font-family: arial; line-height: 21px;"><br></span></span></p><p style="font-size:14px;font-family:arial;">br,</p><p style="font-size:14px;font-family:arial;">Allen</p><p style="font-size:14px;font-family:arial;"><span style="font-family: arial; line-height: 21px;"><br></span></p><p style="font-size:14px;font-family:arial;"><br></p><p style="font-size:14px;font-family:arial;"><br></p><p style="font-size:14px;font-family:arial;"><br></p><p style="font-size:14px; line-height: normal; widows: 1;"><span style="font-size:14px;color:#58595B;font-family:微软雅黑;font-size:14px;"><span style=""><span class="signedit"><br></span></span></span></p><p style="font-size:14px; line-height: normal; widows: 1;"><span style="font-size:14px;color:#58595B;font-family:微软雅黑;font-size:14px;"></span></p><span style="line-height: normal; widows: 1; font-size:14px;;color:#58595b;font-size:10px"></span></div>