-
Notifications
You must be signed in to change notification settings - Fork 18
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
No connection timeout #38
Comments
The full stacktrace:
|
I think this might be a bug in In our case - while (state.err == RD_KAFKA_RESP_ERR__IN_PROGRESS &&
- rd_kafka_q_serve(rkq, 100, 0, RD_KAFKA_Q_CB_CALLBACK,
- rd_kafka_poll_cb, NULL) !=
- RD_KAFKA_OP_RES_YIELD)
- ;
+ while (state.err == RD_KAFKA_RESP_ERR__IN_PROGRESS)
+ {
+ if (rd_kafka_q_serve(rkq, 100, 0, RD_KAFKA_Q_CB_CALLBACK, rd_kafka_poll_cb, NULL) == 0)
+ {
+ state.err = RD_KAFKA_RESP_ERR__TIMED_OUT;
+ }
+ } It worked in our case. I'll double check it soon and will create a PR to |
Posting it here for visibility: |
If there is no connection to the kafka broker an attempt to establish such a connection hangs indefinitely and doesn't check for interrupts.
Unfortunately I don't have a full backtrace, but here's
librdkafka
part of it:The text was updated successfully, but these errors were encountered: