Hi Allan,I am testing network error recovery for our SAC clients and found the clients take ~ 70 seconds to return from a connect error when the network cable is disconnected.I have enabled heartbeats and set the BROKER_HEARTBEAT=10 in ChannelImpl.cpp.
Sequence of events:1. Client connects to RabbitMQ broker using SAC::CreateSecure()2. Connection is established and remains idle.3. Disconnect the network connection between client host and RabbitMQ server4. Client gets disconnected due to heartbeat timeout. This is as expected based on the heartbeat configuration.5. Client attempts reconnection by calling SAC::CreateSecure() again on the same RMQ host.6. This connection attempt fails and returns only after 64 secs.I'd prefer for the call to timeout sooner while I increase number of reconnect attempts if needed. Is the connect method configurable for timeout in rabbitmq-c?
--Regards,Kiran
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 post to this group, send email to rabbitmq...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/abf069a9-921c-406e-b9ae-c035083e67a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Allan. In order to utilize amqp_socket_open_noblock feature, I will have to replace amqp_socket_open in Channel.cpp with noblock variant. What about the amqp_set_handshake_timeout? Should this be set just before amqp_tcp_socket_new and amqp_socket_open_noblock in channel ctor?
To view this discussion on the web visit https://groups.google.com/d/msgid/rabbitmq-c-users/797bd0c6-efe9-4555-911e-eccbe0d6a483%40googlegroups.com.