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



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

相关文章:

  • 2021-07-11
  • 2021-12-10
  • 2022-12-23
  • 2021-08-17
  • 2021-04-13
  • 2022-02-13
  • 2021-12-03
  • 2022-01-15
猜你喜欢
  • 2021-10-22
  • 2022-01-17
  • 2021-09-24
  • 2022-01-26
  • 2021-09-12
  • 2021-09-10
  • 2022-12-23
相关资源
相似解决方案