Skip to content

Commit

Permalink
close sockets when stopping federation (#546)
Browse files Browse the repository at this point in the history
when we stop a federation server, we need to close the active sockets too,
otherwise they hang around like zombies.

mmm, brainz
  • Loading branch information
richvdh authored Jan 22, 2019
1 parent cd3e3c5 commit 665210b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/50federation/35room-invite.pl
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@ sub do_v2_invite_request
# error on make_leave
$federation_server->close();

# close any connected sockets too, otherwise synapse will
# just reuse the connection.
foreach my $child ( $federation_server->children() ) {
log_if_fail "closing", $child;
$child->close();
}

return matrix_leave_room( $user, $room_id );
}
else {
Expand Down

0 comments on commit 665210b

Please sign in to comment.