From 665210b5e13e4adf9194512d44677a2a9ef7ed0a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Tue, 22 Jan 2019 11:08:17 +0000 Subject: [PATCH] close sockets when stopping federation (#546) when we stop a federation server, we need to close the active sockets too, otherwise they hang around like zombies. mmm, brainz --- tests/50federation/35room-invite.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/50federation/35room-invite.pl b/tests/50federation/35room-invite.pl index 4074c329b..586e9a90b 100644 --- a/tests/50federation/35room-invite.pl +++ b/tests/50federation/35room-invite.pl @@ -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 {