TCP closing a connection

client closes socket:

clientSocket.close();

step1 :client sends TCP FIN control segment to server

step2: Server receives FIN,replies with ACK. Closes connection,sends FIN.

time wait 30 seconds(in order to receive the package which already send but unreceived)

TCP closing a connection

TCP closing a connectionTCP closing a connection

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvc3Vzc2VyNDM=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">

TCP waits until it has been three duplicate ACKs before retransmitting the packet

上一篇:Java ConcurrentHashMap 高并发安全实现原理解析,mysql数据库项目式教程答案


下一篇:mybatis源码数据库链接配置