mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
修复websocket服务端收到close请求后未断开连接的问题:#430
This commit is contained in:
@@ -177,6 +177,7 @@ protected:
|
||||
switch (header._opcode){
|
||||
case WebSocketHeader::CLOSE:{
|
||||
HttpSessionType::encode(header,nullptr);
|
||||
HttpSessionType::shutdown(SockException(Err_shutdown, "recv close request from client"));
|
||||
}
|
||||
break;
|
||||
case WebSocketHeader::PING:{
|
||||
|
||||
Reference in New Issue
Block a user