if (AMQP_STATUS_TIMEOUT == res) {
if (amqp_time_equal(deadline, state->next_recv_heartbeat)) {
amqp_socket_close(state->socket, AMQP_SC_FORCE);
return AMQP_STATUS_HEARTBEAT_TIMEOUT;
} else if (amqp_time_equal(deadline, timeout_deadline)) {
return AMQP_STATUS_TIMEOUT;
} else if (amqp_time_equal(deadline, state->next_send_heartbeat)) {
/* send heartbeat happens before we do recv_with_timeout */
goto beginrecv;
} else {
amqp_abort("Internal error: unable to determine timeout reason");
}
} else if (AMQP_STATUS_OK != res) {
return res;
}
--
You received this message because you are subscribed to the Google Groups "rabbitmq-c-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-c-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/35a40eb1-d651-41c1-be19-0ef0d806cf3co%40googlegroups.com.
That's one of those "this state should never be reached" kind of asserts. It usually means that there's a bug in rabbitmq-c somewhere (or an invalid assumption).If you have code that reaches this, it would be useful to determine what the value for deadline, timeout_deadline, and the state struct looks like.-Alan
On Wed, Jun 10, 2020 at 6:44 AM Rakesh K R <rakesh...@gmail.com> wrote:
Hi,--Can someone help me in understand on which scenario I can hit below highlighted code in rmq library?if (AMQP_STATUS_TIMEOUT == res) {
if (amqp_time_equal(deadline, state->next_recv_heartbeat)) {
amqp_socket_close(state->socket, AMQP_SC_FORCE);
return AMQP_STATUS_HEARTBEAT_TIMEOUT;
} else if (amqp_time_equal(deadline, timeout_deadline)) {
return AMQP_STATUS_TIMEOUT;
} else if (amqp_time_equal(deadline, state->next_send_heartbeat)) {
/* send heartbeat happens before we do recv_with_timeout */
goto beginrecv;
} else {
amqp_abort("Internal error: unable to determine timeout reason");
}
} else if (AMQP_STATUS_OK != res) {
return res;
}
You received this message because you are subscribed to the Google Groups "rabbitmq-c-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-c-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/bb0489e6-a487-45cb-9d81-10d1565df216o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/bb0489e6-a487-45cb-9d81-10d1565df216o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-c-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/f7af50ab-eaaa-4a70-9016-fc102f2c89dbo%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/f7af50ab-eaaa-4a70-9016-fc102f2c89dbo%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-c-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/e6045922-2307-4d80-a114-737279f45daco%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/e6045922-2307-4d80-a114-737279f45daco%40googlegroups.com.