Skip to content

Commit

Permalink
clusterd: Dereference CLP tcp socket after hangup
Browse files Browse the repository at this point in the history
We have a small leak here, that clp sockets keep referenced after the
peer closed. Fix.
  • Loading branch information
donald committed Dec 7, 2017
1 parent 4cc68dc commit fcbb609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clusterd/clusterd
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ sub clp_receive {
my $data;
defined $s->recv($data,$TCP_MAX) or return;
if (!length($data) ) {
delete $mgmt_sockets{$s};
delete $clp_sockets{$s};
$s->close;
return;
}
Expand Down

0 comments on commit fcbb609

Please sign in to comment.