Closing connection causes timeout (ineterror,close) in Rabbitmq Cluster environment (Openshift)

we have a problem that occurs when connecting from a pod/knative service in openshift to a rabbitmq cluster running in the same openshift project/namespace.

When the function wants to close the connection to rabbitmq by calling .close() (we use Apache Qpid Proton and AMQP 1.0) the close operation causes a timeout. 
When connection with the same function/python app from my local machine to the same rabbitmq cluster, the connection closes immediately when calling .close(). 

Do you have an idea why this could be? Any help is much appreciated. 

Attached you see the log from the client. You can see that the shutdown/close call was at 14:56:22 (UTC).

Here is the log from the rabbitmq cluster/server. You can see that the close call at 14:56:22 is received but immediately causes an inet_error,closed error.:

2023-10-17 14:54:51.268015+00:00 [info] <0.37600.0> AMQP 1.0 connection <0.37600.0>: user ‘adapter’ authenticated
2023-10-17 14:54:51.326711+00:00 [info] <0.37600.0> AMQP 1.0 connection <0.37600.0>: user ‘adapter’ authenticated and granted access to vhost ‘/’
2023-10-17 14:56:22.395528+00:00 [error] <0.37600.0> Error on AMQP 1.0 connection <0.37600.0> (running), channel 0:
2023-10-17 14:56:22.395528+00:00 [error] <0.37600.0> <<“Reader error: {inet_error,closed}\n[{rabbit_misc,throw_on_error,2,[{file,\”rabbit_misc.erl\”},{line,504}]},\n {rabbit_amqp1_0_writer,internal_send_command,4,\n                        [{file,\”rabbit_amqp1_0_writer.erl\”},{line,222}]},\n {rabbit_amqp1_0_reader,send_on_channel0,3,\n                        [{file,\”rabbit_amqp1_0_reader.erl\”},{line,619}]},\n {rabbit_amqp1_0_reader,maybe_close,1,\n                        [{file,\”rabbit_amqp1_0_reader.erl\”},{line,267}]},\n {rabbit_amqp1_0_reader,handle_1_0_frame,4,\n                        [{file,\”rabbit_amqp1_0_reader.erl\”},{line,319}]},\n {rabbit_amqp1_0_reader,recvloop,2,\n                        [{file,\”rabbit_amqp1_0_reader.erl\”},{line,120}]},\n {rabbit_reader,run,1,[{file,\”rabbit_reader.erl\”},{line,453}]},\n {rabbit_reader,start_connection,5,[{file,\”rabbit_reader.erl\”},{line,352}]}]”>>
2023-10-17 14:56:22.395854+00:00 [error] <0.37600.0> closing AMQP connection <0.37600.0> (10.254.17.1:58068 -> 10.254.23.156:5671):
2023-10-17 14:56:22.395854+00:00 [error] <0.37600.0> {inet_error,closed}

Read more here: Source link