F
F
fleksss_pod_papicha2021-01-07 16:36:38
RabbitMQ
fleksss_pod_papicha, 2021-01-07 16:36:38

Why won't RabbitMQ close connections?

Console

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9\sbin>rabbitmqctl.bat list_connections
Listing connections ...
user peer_host peer_port state
guest 127.0.0.1 56044 running
guest 127.0.0.1 56045 running
guest 127.0.0.1 56046 running
guest 127.0.0.1 56047 running
guest 127.0.0.1 56048 running
guest 127.0.0.1 56049 running
guest 127.0.0.1 56050 running
guest 127.0.0.1 56051 running
guest 127.0.0.1 56052 running
guest 127.0.0.1 56053 running
guest 127.0.0.1 56054 running
guest 127.0.0.1 56055 running

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9\sbin>rabbitmqctl.bat close_all_connections 127.0.0.1
Closing all connections in vhost /, reason: 127.0.0.1...
Closed 12 connections

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9\sbin>rabbitmqctl.bat list_connections
Listing connections ...
user peer_host peer_port state
guest 127.0.0.1 56259 running
guest 127.0.0.1 56260 running
guest 127.0.0.1 56261 running
guest 127.0.0.1 56262 running
guest 127.0.0.1 56263 running
guest 127.0.0.1 56264 running
guest 127.0.0.1 56266 running
guest 127.0.0.1 56265 running
guest 127.0.0.1 56267 running
guest 127.0.0.1 56268 running
guest 127.0.0.1 56269 running
guest 127.0.0.1 56270 running

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2021-01-07
@yarkin

By the port numbers, you can see that these are other connections, did you consider such an option that RabbitMQ still closes them, but the application manages to reconnect?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question