Index: tlsIO.c ================================================================== --- tlsIO.c +++ tlsIO.c @@ -931,10 +931,13 @@ return -1; } else { continue; } } else if (err == 0) { + if (Tcl_Eof(statePtr->self)) { + return 0; + } dprintf(stderr,"CR! "); *errorCodePtr = ECONNRESET; return -1; } if (statePtr->flags & TLS_TCL_SERVER) {