Serverå’ŒClient都å¯ä»¥å…³é—已建立的连接,有å¯èƒ½Server先关é—,有å¯èƒ½Client先关é—,有å¯èƒ½åŒæ—¶å…³é—。åŒæ—¶å…³é—ä¸å¤ªå¸¸è§ï¼ŒServerå…³é—也ä¸å¤ªå¸¸è§ï¼ˆServer觉得有些Client一直ä¿æŒç€è¿žæŽ¥å 用资æºï¼Œå…³é—了æŸäº›Client的连接,一般æ¥è¯´Server是åšæœåŠ¡çš„,ä¸ä¼šä¸»åŠ¨æ–开,除éžæ˜¯æŸäº›ç‰¹åˆ«çš„需è¦ï¼‰ï¼ŒClient先关é—比较常è§ã€‚
Client先关é—的情况:https://benohead.com/tcp-about-fin_wait_2-time_wait-and-close_wait/
Server先关é—的情况:https://benohead.com/c-understanding-close_wait-and-fin_wait_2/
åŒæ—¶å…³é—连接的情况:http://www.tcpipguide.com/free/t_TCPConnectionTermination-4.htm
Top comments (0)