读书人

tcp 连接的11类状态转载

发布时间: 2012-09-11 10:49:03 作者: rapoo

tcp 连接的11种状态转载

?

一、Linux服务器上11种网络连接状态

?LAST_ACK:被动关闭端一段时间后,接收到文件结束符的应用程序将调用CLOSE关闭连接。这导致它的TCP也发送一个?FIN,等待对方的ACK.就进入了LAST-ACK .?/* The remote end has shut down, and the socket is closed. Waiting for acknowledgement.?等待原来发向远程TCP的连接中断请求的确认?*/

9)TIME_WAIT:在主动关闭端接收到FIN后,TCP就发送ACK包,并进入TIME-WAIT状态。/* The socket is waiting after close to handle packets still in the network.等待足够的时间以确保远程TCP接收到连接中断请求的确认?*/

4、JAVA1.6的相关参数说明:

a、http.keepAlive=<boolean>
default: true

Indicates if keep alive (persistent) connections should be supported.

b、http.maxConnections=<int>
default: 5

Indicates the maximum number of connections per destination to be kept alive at any given time

?

读书人网 >移动开发

热点推荐