mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-18 19:40:57 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3544f47edd |
@@ -23884,9 +23884,8 @@ inline ReadResult WebSocket::read(std::string &msg) {
|
|||||||
// Handle fragmentation
|
// Handle fragmentation
|
||||||
if (!fin) {
|
if (!fin) {
|
||||||
while (true) {
|
while (true) {
|
||||||
// A close() from another thread ends the message being assembled,
|
// As in the loop over frames above, close() ends the read even while
|
||||||
// as it ends the loop over frames above: a peer that keeps sending
|
// the peer keeps sending fragments
|
||||||
// fragments never lets a read reach a wait
|
|
||||||
if (closed_) { return Fail; }
|
if (closed_) { return Fail; }
|
||||||
Opcode cont_opcode;
|
Opcode cont_opcode;
|
||||||
std::string cont_payload;
|
std::string cont_payload;
|
||||||
|
|||||||
Reference in new issue
Block a user