mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 18:20:42 -07:00
If a LeafNode message is sent across a route, and the message does not fit in the buffer, the parser would incorrectly process the "pub args" as if it was a ROUTED message, not a LEAF message. This caused clonePubArg() to return an error that would cause the parser to end with a protocol violation. Keep track that we are processing an LMSG so that we can pass that information to clonePubArg() and do proper parsing in split scenario. Resolves #1743 Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
54 KiB
54 KiB