• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zeromq / libzmq / 28624297691

02 Jul 2026 10:00PM UTC coverage: 75.336% (-0.2%) from 75.486%
28624297691

push

github

bluca
Fix GSSAPI PUB/SUB subscription corruption on reconnection

Problem: When GSSAPI encryption is active, subscribe and cancel message
flags (msg_t::subscribe = 12, msg_t::cancel = 16) were not preserved
through the encode_message/decode_message round-trip.

encode_message() only captured the 'more' (bit 0) and 'command' (bit 1)
flags in the wire flags byte. The subscribe flag occupies bits 2-3
(value 12) and cancel occupies bit 4 (value 16) — both outside the
captured range, so they were silently zeroed on decoding.

After decode_message(), xpub_t::xread_activated() would not recognise
the arriving message as a subscribe or cancel command, causing
subscriptions to be silently dropped after reconnection (when
xhiccuped() re-sends cached subscriptions through the GSSAPI path).

Solution: Encode the subscribe flag into wire bit 2 (0x04) and the
cancel flag into wire bit 3 (0x08) in encode_message(), and restore
them via set_flags(msg_t::subscribe) / set_flags(msg_t::cancel) in
decode_message().

15132 of 20086 relevant lines covered (75.34%)

26482.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.68
/libzmq/src/tipc_connecter.cpp


Source Not Available

The file "libzmq/src/tipc_connecter.cpp" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc