vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

Missing explanation for 'magic cookies'

Open andrasi opened this issue 4 years ago • 2 comments
trafficstars

Hello!

What are the magic cookies used for?

Looking at the documentation and tests I couldn't understand much. https://github.com/COVESA/vsomeip/blob/13f9c89ced6ffaeb1faf485152e27e1f40d234cd/documentation/vsomeipUserGuide#L601

andrasi avatar Nov 08 '21 10:11 andrasi

Magic cookies are explained in the SOME/IP specification. They are specific tokens that allow to restart the receiver if a data stream contained data that could not be deserialized as SOME/IP messages.

lutzbichler avatar Dec 07 '21 10:12 lutzbichler

What happens if the data can't be serialized and magic cookies are not enabled?

Does magic cookies resolve an error state by restarting the receiver?

When is it recommended to use magic cookies or not to use?

Btw, why is it named cookies? I thought about web cookies' functionality. Perhaps more self explaionatory naming would be better.

serdarkose avatar May 10 '22 04:05 serdarkose

@serdarkose you should address that questions to the people that write the SOME/IP specification (autosar), not in one project that implements the specification.

goncaloalmeida avatar May 19 '23 10:05 goncaloalmeida