Skip to content

Commit 7b29e01

Browse files
committed
ae.net.db: Fix DNS failure tests hanging on Windows
Use trailing dot ("nonexistent.invalid.") to mark the hostname as a fully-qualified domain name. Without the dot, the Windows DNS resolver appends suffixes from the search list (e.g. .internal.cloudapp.net on Azure VMs), causing multiple DNS queries that each can take up to 10 seconds to time out. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2a1e572 commit 7b29e01

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

net/db/mysql/package.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2319,7 +2319,7 @@ debug(ae_unittest) unittest
23192319

23202320
bool gotError = false;
23212321
async({
2322-
auto mysql = new MySqlConnection("nonexistent.invalid", 3306, "user", "db", "pass");
2322+
auto mysql = new MySqlConnection("nonexistent.invalid.", 3306, "user", "db", "pass");
23232323
try
23242324
await(mysql.ready);
23252325
catch (Exception e)

net/db/psql/package.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ debug(ae_unittest) unittest
15441544

15451545
bool gotError = false;
15461546
async({
1547-
auto pg = new PgSqlConnection("nonexistent.invalid", 5432, "user", "db", "pass");
1547+
auto pg = new PgSqlConnection("nonexistent.invalid.", 5432, "user", "db", "pass");
15481548
try
15491549
await(pg.ready);
15501550
catch (Exception e)

0 commit comments

Comments
 (0)