pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [pulsar] firefeifei commented on issue #7327: 2.6.0 cpp client crash
Date Wed, 24 Jun 2020 06:57:06 GMT

firefeifei commented on issue #7327:
URL: https://github.com/apache/pulsar/issues/7327#issuecomment-648631698


   
       m_conf = pulsar_client_configuration_create();
       pulsar_client_configuration_set_logger(m_conf, PulsarProducer::pulsar_logger, (void*)this);
       m_client = pulsar_client_create(service_url.c_str(), m_conf);
       pulsar_producer_configuration_t* producer_conf = pulsar_producer_configuration_create();
       pulsar_producer_configuration_set_batching_enabled(producer_conf, 0);
       pulsar_producer_configuration_set_max_pending_messages(producer_conf, 1000000);
       pulsar_result err = pulsar_client_create_producer(m_client, topic.c_str(), producer_conf,
&producer);
        if (err != pulsar_result_Ok) {
           pulsar_producer_configuration_free(producer_conf);
          return NULL;
        }
   
   service_url: 127.0.0.1:5678
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message