apache / rocketmq-client-python

Apache RocketMQ python client
https://rocketmq.apache.org/
Apache License 2.0
271 stars 95 forks source link

when does it support tls? #139

Open limingxuan2011 opened 1 year ago

limingxuan2011 commented 1 year ago

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