--- /n/sources/plan9/sys/src/9k/port/devtls.c Fri Apr 30 08:39:47 2021 +++ /sys/src/9k/port/devtls.c Fri Jun 19 00:00:00 2026 @@ -743,6 +743,8 @@ tlsrecread(TlsRec *tr) if(strcmp(up->errstr, Eintr) == 0 && !waserror()){ regurgitate(tr, header, nconsumed); poperror(); + }else if(strcmp(up->errstr, Ehungup) == 0 && nconsumed == 0){ + tlsclosed(tr, SRClose); }else tlsError(tr, "channel error"); nexterror();