Hi,
I am trying to find the root cause for one of our network issues that's occurring very frequently. The issue presents itself after the application runs for a few hours. So the problem is not just the application, but also the system resources.
The connection to the RabbitMQ broker is lost and the application cannot revive the connection without a restart.
So far I could not figure out the ROOT CAUSE to open the socket when attempting a reconnect.
amqp_tcp_socket_recv() and amqp_tcp_socket_send() do update the error to
self->internal_error = amqp_os_socket_error();
However I am not able to access this info. the return values are not helpful as it sort limited
errors (EINTR, EWOULDBLOCK and EAGAIN)
default:
res = AMQP_STATUS_SOCKET_ERROR;
I would like to have the errorno value when error occurs, what is the best way to get this info .
This would provide me more insight into the socket issue that's persisting.