Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zmq] add proxy mode to the ZmqServer #948

Closed
wants to merge 1 commit into from

Conversation

Yakiv-Huryk
Copy link
Contributor

  • ZmqServer can now work as a proxy server (using ZmqClient to send unprocessed messages)
  • add sendRaw() method to the ZmqClient to avoid unnecessary serialization

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Yakiv-Huryk
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80 liuh-80 self-requested a review November 18, 2024 02:11
* ZmqServer can now work as a proxy server (using ZmqClient to send
unprocessed messages)
* add sendRaw() method to the ZmqClient to avoid unnecessary
serialization
@@ -33,11 +34,23 @@ ZmqServer::~ZmqServer()
m_mqPollThread->join();
}

void ZmqServer::enableProxyMode(const std::string& proxy_endpoint)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When mgmt VRF enabled, do we need VRF parameter here?


std::unique_ptr<ZmqClient> m_proxy_client;

std::mutex m_handlerMapMutext;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this mutex for m_HandlerMap synchronize bug fixing? seems not essential for this proxy mode change.

@Yakiv-Huryk Yakiv-Huryk closed this Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants