From 3544f47edd1e1f3e2209a3ab7c2774fa69f1fe8b Mon Sep 17 00:00:00 2001 From: yhirose Date: Wed, 18 Nov 2026 12:38:37 -0500 Subject: [PATCH] Shorten the comment on the close() check in WebSocket::read() --- httplib.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/httplib.h b/httplib.h index fea74056..31b62783 100644 --- a/httplib.h +++ b/httplib.h @@ -23884,9 +23884,8 @@ inline ReadResult WebSocket::read(std::string &msg) { // Handle fragmentation if (!fin) { while (true) { - // A close() from another thread ends the message being assembled, - // as it ends the loop over frames above: a peer that keeps sending - // fragments never lets a read reach a wait + // As in the loop over frames above, close() ends the read even while + // the peer keeps sending fragments if (closed_) { return Fail; } Opcode cont_opcode; std::string cont_payload;