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

Is there a way to get the status of client connection?

Open abmoussaoui opened this issue 2 years ago • 1 comments
trafficstars

Hello,

When the pulsar server go down after a succressful connection to the python client, is there a way to check if that the connection is destroyed. like for instance

a boolean: client.is_closed()

Thanks

abmoussaoui avatar Oct 20 '23 14:10 abmoussaoui

It's an internal detail and should not be exposed.

Currently, a Client is associated with a connection pool that manages connections to different brokers. It's meaningless to add an is_closed() method.

BewareMyPower avatar Oct 26 '23 10:10 BewareMyPower