Function amqp_get_handshake_timeout

Synopsis

#include <librabbitmq/amqp.h>

struct timeval * amqp_get_handshake_timeout(amqp_connection_state_t state)

Description

Get the login handshake timeout.

amqp_login and amqp_login_with_properties perform the login handshake with the broker. This function returns the timeout associated with completing this operation from the client side. This value can be set by using the amqp_set_handshake_timeout.

Note that the RabbitMQ broker has configurable timeout for completing the login handshake, the default is 10 seconds. rabbitmq-c has a default of 12 seconds.

Parameters:

[ in ] state - the connection object

Return
a struct timeval representing the current login timeout for the state object. A NULL value represents an infinite timeout. The memory returned is owned by the connection object.
Since
v0.9.0

Source

Lines 361-363 in librabbitmq/amqp_api.c. Line 2450 in librabbitmq/amqp.h.

struct timeval *amqp_get_handshake_timeout(amqp_connection_state_t state) {
  return state->handshake_timeout;
}





Add Discussion as Guest

Log in to DocsForge