rocketmq-client-python icon indicating copy to clipboard operation
rocketmq-client-python copied to clipboard

when does it support tls?

Open limingxuan2011 opened this issue 2 years ago • 0 comments

java client can support connect with rocketmq-server in tls, but python client does not have tls option, when does it support?

java client example:

public class Main {
    public static void main(String[] args) {
        DefaultMQProducer producer = new DefaultMQProducer("ProducerGroupName");
        producer.setNamesrvAddr("192.168.0.1:8100");
        //producer.setUseTLS(true);  //if rocketmq server use ssl mode,use this option
        try {
            producer.start();
            Message msg = new Message("TopicTest",
                "TagA",
                "OrderID188",
                "Hello world".getBytes(RemotingHelper.DEFAULT_CHARSET));
            SendResult sendResult = producer.send(msg);
            System.out.printf("%s%n", sendResult);

        } catch (Exception e) {
            e.printStackTrace();

        }
        producer.shutdown();
    }
}

python client does not have this option: image

limingxuan2011 avatar Jun 12 '23 02:06 limingxuan2011