HI: For same issue, if I change the port value which in binding by one task, I need delete the task and still wait 2Min then create the task with new port again ?
Vincent -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of vincent cui Sent: 2012年7月21日 15:44 To: Mailing list for lwIP users Subject: Re: [lwip-users] 答复: how to release allocated TCB Simon: You are correct, after waiting 2Min and create it again , it works now . But it maybe client socket is active too when user connect to TELNET application, we must close listen socket and client socket together in this case Vincent -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Simon Goldschmidt Sent: 2012年7月21日 6:27 To: Mailing list for lwIP users Subject: Re: [lwip-users] 答复: how to release allocated TCB Kieran Mansley <[email protected]> wrote: > > On 20 Jul 2012, at 15:35, vincent cui wrote: > >> Hi: >> >> I use socket api to do that. > > Is it possible that the old socket is just in the TCP TIME_WAIT state, and > will be cleared up after a short while? If you're calling close() on your > sockets, that is all you should need to do. That sounds like a good explanation: from the original post, I think he closed the listening socket and reopened it and called listen() again. I think that really doesn't work as long as there are old connections in time-wait, so trying to create the listening socket again after 2 minutes should probably succeed... Simon _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
