3 ms·
> Having a header that only occurs in message initial position breaks this. Why would it break it? It may make it slightly harder to parse, but since the heade
by pyrale 3y ago
> Having a header that only occurs in message initial position breaks this.
Why would it break it? It may make it slightly harder to parse, but since the header also determines the end of the message, anyone parsing the outer message would have a clear understanding that the inner header can be safely ignored as long as the stated outer length has not been matched.
- saghm 3y agoYeah, it's not clear to me why this is an issue either. I'd expect that parsers would be written as "parse length, if it's valid, allocate that many bytes and read them in, then parse those bytes as a message".