Skip to content

Commit

Permalink
fix(Gorgone): fix proxy eating 100% cpu (#1629)
Browse files Browse the repository at this point in the history
Refs:MON-146862
  • Loading branch information
Evan-Adam authored Aug 22, 2024
1 parent e8e8310 commit f5c9c97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gorgone/gorgone/modules/core/proxy/class.pm
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,11 @@ sub periodic_exec {
target => ''
});
$connector->{clients}->{$_}->{class}->close() if (defined($connector->{clients}->{$_}->{class}));
# if the connection to the node is not established, we stop listenning for new event for this destination,
# so event will be stored in zmq buffer until we start processng them again (see proxy_addnode)
# zmq queue have a limit in size (high water mark), so if the node never connect we will loose some message,
# stoping us from memory leak or other nasty problem.
delete $connector->{watchers}->{$_};
$connector->{clients}->{$_}->{class} = undef;
$connector->{clients}->{$_}->{delete} = 0;
$connector->{clients}->{$_}->{com_read_internal} = 0;
Expand Down

0 comments on commit f5c9c97

Please sign in to comment.