Home > other >  Network impassability lead to TCP retransmission
Network impassability lead to TCP retransmission

Time:10-05

Project background: use the Socket to establish a connection, a message to communicate via TCP communications;

Steps:
1 after server nic broken down, use the client to the server send A message, will this time because the network can lead to A message into the TCP retransmission
2 the client will close socket channel
3 CARDS up to server end, and reconstruction on the client and server side B, connect and send it A message server side at this time received the client's first message B, then received A message, and from the point of view caught A message using the last port connection


CodePudding user response:

Inquired why message after A Socket is closed, A message will not be discarded, and it's the last when the connection is established to monitor the use of port for communication, and after the message B receives the server end,
  • Related