Close the control socket during cleanup

This should prevent further requests coming in, triggering deadlocks.
This commit is contained in:
Patrick J Cherry
2018-12-07 15:02:55 +00:00
parent ce9499efce
commit 70a3a4bb55
2 changed files with 6 additions and 10 deletions

View File

@@ -114,7 +114,7 @@ class TestWriteDuringMigration < Test::Unit::TestCase
sock.flush
sock.readline
end
rescue Errno::ENOENT
rescue StandardError
# If the socket disappears, that's OK.
break
end