Client closes connexion immediately after long CreateSessionResponse
Description
In the client, the logs show some messages about invalid secure channel Id:
Toolkit (Error) ChunksMgr: invalid secure channel Id=1426261536 expected Id=7 (epCfgIdx=0, scCfgIdx=2)
However, the Wireshark traces show that the scId is correctly sent by the server.
Analysis
The problem is encountered with large responses.
Further analysis with a fake_server replaying a buggy trace shows that the bug only appears when the response is received through multiple SOCKET_RCV_BYTES
events.
The debugger trace shows that the latter bytes are always written at the 8th position of the chunk buffer.
Edited by Pierre-Antoine BRAMERET