Improved sql connection pool resiliency

This commit is contained in:
2026-01-07 01:52:12 +01:00
parent e83ce61877
commit e49a7c83ba
3 changed files with 38 additions and 8 deletions

View File

@@ -82,12 +82,18 @@ public class SearchdomainManager
{
DbDataReader reader = helper.ExecuteSQLCommand("SELECT name FROM searchdomain", []);
List<string> results = [];
while (reader.Read())
try
{
results.Add(reader.GetString(0));
while (reader.Read())
{
results.Add(reader.GetString(0));
}
return results;
}
finally
{
reader.Close();
}
reader.Close();
return results;
}
}