hi,
my program is initiating a connection with rabbitmq.
i use blocking connection with heartbeat of 60.
suddenly, the client is sending FIN,ACK to the rabbitmq server. the server reply with rst,ack and the connection is now closed.
this is happening on idle state, where no data is sending from client to server and no exception has been raised.
my program is still running and no exception err has been recorded in my log file.
i recorded the network packets with wireshark sniffer several times and noticed that a proper heartbeat transactions has been made between my client and the server (heartbeat sent from client to server and from server to client as well).
i need to keep a live the connection for a long time (infinity actually ... ) so every 10 seconds i use process_data_events with sleep of 10 seconds and lock the connection variable resource.
while 1:
lock.aquirce()
time.sleep(10)
self.connection.process_data_events()
lock.release()
what am i doing wrong ?
thanks,
moshe.