BewareMyPower commented on issue #7327:
URL: https://github.com/apache/pulsar/issues/7327#issuecomment-723089645
I've reproduced it with boost 1.54.
```c++
#include <string>
#include <pulsar/c/client.h>
int main(int argc, char* argv[]) {
std::string service_url = "pulsar://localhost:65531";
auto m_conf = pulsar_client_configuration_create();
auto m_client = pulsar_client_create(service_url.c_str(), m_conf);
auto producer_conf = pulsar_producer_configuration_create();
pulsar_producer_t* producer = NULL;
auto err = pulsar_client_create_producer(m_client, "my-topic",
producer_conf, &producer);
if (err != pulsar_result_Ok) {
pulsar_producer_configuration_free(producer_conf);
return 1;
}
return 0;
}
```
The output:
```
2020-11-06 21:46:16.585 INFO [140320113425088] ConnectionPool:85 | Created
connection for pulsar://localhost:65531
2020-11-06 21:46:16.589 INFO [140320018294528] ClientConnection:235 |
[<none> -> pulsar://localhost:65531] Destroyed connection
terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error>
>'
what(): remote_endpoint: Transport endpoint is not connected
Aborted (core dumped)
```
Not sure whether it's the same issue. Or it's just because boost version is
too low. I'll look into the issue later.
----------------------------------------------------------------
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:
[email protected]