Skip to content

Commit d2fa07f

Browse files
authored
'rabbitmqctl status' shows as 0 in the total number of file handles column when there are connections
mgmt_db: 0.0 gb (0.0 %) reserved_unallocated: 0.0 gb (0.0 %) File Descriptors Total: 0, limit: 89903 Free Disk Space Low free disk space watermark: 1.0 gb Free disk space: 40.0079 gb Totals Connection count: 1 Queue count: 3 Virtual host count: 1 Listeners Interface: [2001:123::2], port: 25672, protocol: clustering,
1 parent 2387fdc commit d2fa07f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/rabbit/src/rabbit_networking.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,11 +583,13 @@ handshake(Ref, ProxyProtocolEnabled, BufferStrategy) ->
583583
{ok, ProxyInfo} ->
584584
{ok, Sock} = ranch_handshake(Ref),
585585
ok = tune_buffer_size(Sock, BufferStrategy),
586+
ok = file_handle_cache:obtain(),
586587
{ok, {rabbit_proxy_socket, Sock, ProxyInfo}}
587588
end;
588589
false ->
589590
{ok, Sock} = ranch_handshake(Ref),
590591
ok = tune_buffer_size(Sock, BufferStrategy),
592+
ok = file_handle_cache:obtain(),
591593
{ok, Sock}
592594
end.
593595

0 commit comments

Comments
 (0)