1
Vote

crash in Dispatcher::processFirstPacket()

description

LogicalConnection* pClient = NULL;
int iResult = pServerImpl->getClientFactory()->onFirstRequest(packet, pChannel->GetConnectionContext(), pClient, pOutPacket);
(iResult = 2, pClient = 0xcccccccc)
std::string clientKey = pClient->getKey();
(crash in this line)

comments

smiletiger wrote Mar 31, 2014 at 7:16 AM

i checked the

int WebsocketClientFactory::onFirstRequest( IncomingPacket& _request, ConnectionContext* pConnectionContext, LogicalConnection& lpClient, OutgoingPacket& lpPacket )

, the end is
//Impossible to come here.