rsocket / rsocket-cpp

C++ implementation of RSocket
http://rsocket.io
Apache License 2.0
253 stars 99 forks source link

Warm resumption client from example sends unexpected resume state #885

Open mostroverkhov opened 5 years ago

mostroverkhov commented 5 years ago

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?