---
title: "too many CLOSE_WAIT and TIME_WAIT?"
author: "leibnitz"
date: "2014-03-23T23:16:07Z"
tags: []
categories: ["操作系统"]
slug: "too-many-close-wait-and-time-wait"
draft: false
lastmod: "2015-10-21T14:14:42Z"
id: 2035142
url: "https://leibnitz.iteye.com/blog/2035142"
---

![](http://www.tcpipguide.com/free/diagrams/tcpclose.png)

 

ref:

[tcp gudide](http://www.tcpipguide.com/free/t_TCPConnectionTermination-2.htm)

 [ipsysctl-tutorial](http://www.unifesp.br/dis/lrc/manual/rede/ipsysctl-tutorial.htm#AEN406)

### [从问题看本质: 研究TCP close\_wait的内幕](http://ahuaxuan.iteye.com/blog/657511)

 

conclusions:

-close wait occurs in the reponse side which accept the first 'FIN' from the one side asking to yield a 'disconnect' request

-both cases client-to-server and server-to-client are same flow(steps)