BewareMyPower commented on issue #502: URL: https://github.com/apache/pulsar-client-cpp/issues/502#issuecomment-3366011631
I'm adopting the new `async_connect` API provided by latest Asio library to get around of this issue in https://github.com/apache/pulsar-client-cpp/pull/477 Currently, the SDK leverages the `async_connect` method from `socket` that connects to a single endpoint: https://www.boost.org/doc/libs/1_88_0/doc/html/boost_asio/reference/basic_stream_socket/async_connect.html However, it connects to the resolved addresses one by one with a configured connection timeout. When a resolved address takes much time to connect, the following addresses could be skipped. With the `async_connect` function, the Asio library itself will find a best suitable address to connect. https://www.boost.org/doc/libs/1_88_0/doc/html/boost_asio/reference/async_connect.html -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
