fix ConnectStreams: break loop if resend message fails#272
Conversation
WalkthroughTwo CcStreamSender methods now accept an optional Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
tx_service/include/remote/cc_stream_sender.h(1 hunks)tx_service/src/remote/cc_stream_sender.cpp(8 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
tx_service/include/remote/cc_stream_sender.h (1)
tx_service/src/remote/cc_stream_sender.cpp (2)
SendScanRespToNode(371-516)SendScanRespToNode(371-374)
🔇 Additional comments (4)
tx_service/include/remote/cc_stream_sender.h (2)
91-92: LGTM! Backward-compatible API extension.The optional parameters with default values maintain backward compatibility while enabling callers to opt into reconnection signaling and verbose logging.
95-96: LGTM! Consistent with SendMessageToNode.The optional need_reconnect parameter follows the same pattern as SendMessageToNode, providing a consistent API for reconnection signaling.
tx_service/src/remote/cc_stream_sender.cpp (2)
199-202: LGTM! Proper reconnection signaling.When the stream is in connecting state (version == -1), the code correctly signals the need for reconnection via the out-parameter. The message is buffered below (lines 210-213) for later retry.
401-404: LGTM! Consistent reconnection signaling.The logic mirrors SendMessageToNode (lines 199-202), ensuring consistent behavior for long message streams.
Close https://github.com/eloqdata/project_tracker/issues/87.
Close https://github.com/eloqdata/project_tracker/issues/93.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.