rsocket-cpp icon indicating copy to clipboard operation
rsocket-cpp copied to clipboard

Warm resumption client from example sends unexpected resume state

Open mostroverkhov opened this issue 5 years ago • 0 comments

I am running warm resumption example client (head of master) against java server imitating one from this example. After reconnect client sends RESUME frame with unexpected implied position 0, seen on server as

Resumption states. local: [pos: 0, impliedPos: 14], remote: [pos: 0, impliedPos: 0].

Then client fails with

 WarmResumption_Client.cpp:127] Resumption Failed: rsocket::ConnectionException:
 Client cannot resume, server position 14 is not available

Cold resumption client sends expected state, no errors:

Resumption states. local: [pos: 0, impliedPos: 15], remote: [pos: 0, impliedPos: 161]

Comparing examples contents, It seems the issue is empty resume manager in warm resume case?

mostroverkhov avatar Apr 04 '19 14:04 mostroverkhov