2012年8月3日

socket 关闭但端口占用问题 Bind: Address Already in Use Or How to Avoid this Error when Closing TCP Connections

摘要: Sockets aren't closed immediately. A TCP socket, when closed, will enter a TIME_WAIT state which allows time for any data that has not been transmitted to be sent before closing off the connection (remember, TCP tries to ensure reliable data transfer, so TIME_WAIT gives the protocol an opportuni 阅读全文

posted @ 2012-08-03 12:14 Richard.FreeBSD 阅读(6219) 评论(0) 推荐(1) 编辑

导航