But, if the sender does not attempt to close the socket until the ACK
returns, then the receiver will see an unfinished connection and
(hopefully) realise that the message is unsafe and not attempt to
send it.
With SMTP, the last piece of data is a QUIT anyway, which occurs
after the end-of-message marker - once the QUIT is sent and/or
received, both ends know that the connection is finished with and
will close the socket independently of each other. If the network
disappears before the QUIT comes along, the receiver should be
discarding messages and the sender retrying later.
-- -------------------------------------------------------------- from: Jonathan "Chromatix" Morton mail: chromi@cyberspace.org (not for attachments) website: http://www.chromatix.uklinux.net/vnc/ geekcode: GCS$/E dpu(!) s:- a20 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$ V? PS PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r++ y+(*) tagline: The key to knowledge is not to rely on people to teach you it. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/