]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - telnet.c
Fix another error-reporting bug, in which sk_newlistener would fail to
[PuTTY.git] / telnet.c
index 7bdfedb691987b500c9c57c2bf1bafa52157fad5..dc98a7272aac27c5eb72d59d3747b0233214e1d1 100644 (file)
--- a/telnet.c
+++ b/telnet.c
@@ -667,6 +667,12 @@ static int telnet_closing(Plug plug, const char *error_msg, int error_code,
 {
     Telnet telnet = (Telnet) plug;
 
+    /*
+     * We don't implement independent EOF in each direction for Telnet
+     * connections; as soon as we get word that the remote side has
+     * sent us EOF, we wind up the whole connection.
+     */
+
     if (telnet->s) {
         sk_close(telnet->s);
         telnet->s = NULL;