node-tftp icon indicating copy to clipboard operation
node-tftp copied to clipboard

Delay socket close so to (re)send final ACK if needed.

Open michau-krakow opened this issue 2 years ago • 0 comments

The https://www.rfc-editor.org/rfc/rfc1350, section 6, Normal Termination recommends not to close client connection immediately, but rather wait for a while, as the final ACK may be lost in the network. In such case the client would re-transmit final DATA packet expecting server to send a final ACK again.

This is also fixing https://github.com/gagle/node-tftp/issues/5 when socket is closed too fast, effectively causing final ACK to be lost.

michau-krakow avatar Feb 23 '23 19:02 michau-krakow