On latest release version ( 11.4.5) .I noticed this inside WebSocket::connect(int timeout) function (lines 210), mulitiple copying which may be unintentional. Please see the except below .
WebSocketHttpHeaders headers(_extraHeaders);
std::string subProtocolsHeader;
// FIXME here subProtocols vector is copied
auto subProtocols = getSubProtocols();
if (!subProtocols.empty())
{
int i = 0;
// FIXME here subProtocol is copied
for (auto subProtocol : subProtocols)
{
if (i++ != 0)
{
subProtocolsHeader += ",";
}
subProtocolsHeader += subProtocol;
}
headers["Sec-WebSocket-Protocol"] = subProtocolsHeader;
}
On latest release version ( 11.4.5) .I noticed this inside
WebSocket::connect(int timeout)
function (lines 210), mulitiple copying which may be unintentional. Please see the except below .