commit 1b1a6fb7ee90529dbf0697954ed01f76a65f7d65 from: Omar Polo date: Fri Aug 04 09:52:27 2023 UTC titan: iomux: return -1 on EOF without receving anything otherwise it enters an infinite loop where it tries to read, return zero, and tries again... commit - fcc5a371b135db8bbbb250bf1793ffffd06dc644 commit + 1b1a6fb7ee90529dbf0697954ed01f76a65f7d65 blob - 62ba57c8fc412f0f500f06f4fc2319449263f70e blob + e43765a91ce03ba349b8c0667db5f68d83303623 --- titan.c +++ titan.c @@ -112,6 +112,8 @@ iomux(struct tls *ctx, int fd, const char *in, size_t case -1: return -1; case 0: + if (outwrote == 0) + return -1; return outwrote; default: outwrote += ret;