mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
服务器回复关闭mask
This commit is contained in:
parent
37d19c250a
commit
0c64389334
@ -160,7 +160,11 @@ protected:
|
|||||||
* 接收到完整的一个webSocket数据包后回调
|
* 接收到完整的一个webSocket数据包后回调
|
||||||
* @param header 数据包包头
|
* @param header 数据包包头
|
||||||
*/
|
*/
|
||||||
void onWebSocketDecodeComplete(const WebSocketHeader &header) override {
|
void onWebSocketDecodeComplete(const WebSocketHeader &header_in) override {
|
||||||
|
WebSocketHeader& header = const_cast<WebSocketHeader&>(header_in);
|
||||||
|
auto flag = header._mask_flag;
|
||||||
|
header._mask_flag = false;
|
||||||
|
|
||||||
switch (header._opcode){
|
switch (header._opcode){
|
||||||
case WebSocketHeader::CLOSE:{
|
case WebSocketHeader::CLOSE:{
|
||||||
HttpSessionType::encode(header,nullptr,0);
|
HttpSessionType::encode(header,nullptr,0);
|
||||||
@ -185,6 +189,7 @@ protected:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_remian_data.clear();
|
_remian_data.clear();
|
||||||
|
header._mask_flag = flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user