mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-14 23:07:59 +02:00
Problem: heartbeat command parsing does not check command name size
Solution: treat the first byte of the command body as the size of the command name, rather than as an id, to comply with ZMTP 3.1. This was not an actual problem at runtime since both heartbeat commands have a size of 4, which was treated like an id. But once SUBSCRIBE/UNSUBSCRIBE get implemented it needs to be checked.
This commit is contained in:

committed by
Simon Giesecke

parent
ba9274c39a
commit
5482b1ca45
@@ -127,6 +127,7 @@ class stream_engine_t : public io_object_t, public i_engine
|
||||
typedef metadata_t::dict_t properties_t;
|
||||
bool init_properties (properties_t &properties);
|
||||
|
||||
int process_command_message (msg_t *msg_);
|
||||
int produce_ping_message (msg_t *msg_);
|
||||
int process_heartbeat_message (msg_t *msg_);
|
||||
int produce_pong_message (msg_t *msg_);
|
||||
|
Reference in New Issue
Block a user