cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
868
Views
10
Helpful
4
Replies

How to respond to a "Reset" when data is available to transfer

ranga2002
Level 1
Level 1

Hi Team,

 

Let's assume we have a client and server talking to each other. 

 

Scenario 1. The client sends a "RESET" message to the server. But the server has some data to be transferred to the client.

                  Does server accept "RESET" from the client and proceed with connection termination(4 way) or does it ignore the "RESET" and keep sending data?

 

Scenario 2: The Server sends a "RESET" message to the client. But the client has some data to be transferred to the server.

                  Does the client accept "RESET" from the client and proceed with connection termination(4 way) or does it ignore the "RESET" and keep sending data?

 

Thank you.

1 Accepted Solution

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @ranga2002 ,

as far as I know TCP requests to close a TCP connection are honored regardless of host role ( client or server) or to the fact that one side still have some data to be sent.

At application level the device that needs to send the remaining data can open a new TCP session with the purpose to send that data.

 

Hope to help

Giuseppe

 

View solution in original post

4 Replies 4

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @ranga2002 ,

as far as I know TCP requests to close a TCP connection are honored regardless of host role ( client or server) or to the fact that one side still have some data to be sent.

At application level the device that needs to send the remaining data can open a new TCP session with the purpose to send that data.

 

Hope to help

Giuseppe

 

I believe that @Giuseppe Larosa is quite right. +5 The tcp reset is a way of signaling "I can no longer process - terminate immediately". It would be counterproductive for the peer device to continue to transmit. If there is more data to be sent then beginning a new tcp session is the appropriate thing to do.

HTH

Rick

Thank you Richard & Giuseppe.

You are quite welcome. This community is an excellent place to ask questions and to learn about networking. I hope to see you continue to be active in the community.

HTH

Rick