修复websocket服务端收到close请求后未断开连接的问题:#430

This commit is contained in:
xiongziliang 2020-08-01 10:13:42 +08:00
parent 7ef3ad6b95
commit 5d436d0a1f
1 changed files with 1 additions and 0 deletions

View File

@ -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:{