You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int header_recv_times = 0;
for (;;)
{
const auto size = socket.recv(tempBuffer.data(), tempBuffer.size(),
@@ -1213,7 +1214,16 @@ namespace http
// Empty line indicates the end of the header section (RFC 7230, 2.1. Client/Server Messaging)
const auto endIterator = std::search(responseData.cbegin(), responseData.cend(),
headerEnd.cbegin(), headerEnd.cend());
if (endIterator == responseData.cend()) break; // two consecutive CRLFs not found
if (endIterator == responseData.cend())
{
if (header_recv_times < 3)
{
header_recv_times++;
continue;
}
else
break; // two consecutive CRLFs not found
}
const auto headerBeginIterator = responseData.cbegin();
Activity