Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] How to close connection if Kafka server isn't responding? #1013

Open
conradogarciaberrotaran opened this issue Jun 5, 2024 · 0 comments
Labels

Comments

@conradogarciaberrotaran
Copy link

conradogarciaberrotaran commented Jun 5, 2024

Hi!
I want to close both a producer and consumer when Kafka server isn't responding anymore.
If I do

await producer.stop()
await consumer.stop()

It will try to flush, but since the server isn't online, it won't close.

Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant