Fix winHttp WebSocket regression cause by message fragment changes (#663)
This commit is contained in:
Родитель
18f7aad846
Коммит
e28ba610ce
|
@ -1370,6 +1370,7 @@ void WinHttpConnection::callback_websocket_status_read_complete(
|
|||
}
|
||||
else if (wsStatus->eBufferType == WINHTTP_WEB_SOCKET_UTF8_MESSAGE_BUFFER_TYPE || wsStatus->eBufferType == WINHTTP_WEB_SOCKET_BINARY_MESSAGE_BUFFER_TYPE)
|
||||
{
|
||||
pRequestContext->m_websocketReceiveBuffer.FinishWriteData(wsStatus->dwBytesTransferred);
|
||||
pRequestContext->WebSocketReadComplete(wsStatus->eBufferType == WINHTTP_WEB_SOCKET_BINARY_MESSAGE_BUFFER_TYPE, pRequestContext->m_websocketReceivingMessageFragments, true);
|
||||
pRequestContext->WebSocketReadAsync();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче