From 2f0bdf27241772f1edf017b21ec883872be0fc98 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Sun, 21 Mar 2021 18:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D32=E4=BD=8D=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E6=97=B6=EF=BC=8Cwebsocket=E7=9B=B8=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/WebSocketSplitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/WebSocketSplitter.cpp b/src/Http/WebSocketSplitter.cpp index e67ac53f..0efab68c 100644 --- a/src/Http/WebSocketSplitter.cpp +++ b/src/Http/WebSocketSplitter.cpp @@ -150,7 +150,7 @@ void WebSocketSplitter::onPayloadData(uint8_t *data, size_t len) { void WebSocketSplitter::encode(const WebSocketHeader &header,const Buffer::Ptr &buffer) { string ret; - auto len = buffer ? buffer->size() : 0; + uint64_t len = buffer ? buffer->size() : 0; uint8_t byte = header._fin << 7 | ((header._reserved & 0x07) << 4) | (header._opcode & 0x0F) ; ret.push_back(byte);