diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-04-26 05:02:46 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-04-30 16:49:52 +0200 |
commit | a158d412b323001590099594002ed2426bcbaf8b (patch) | |
tree | f10581dc0d90351a72f2907124e527f7f0e30e67 /test/parallel/test-http-dns-error.js | |
parent | 283a967e356311a467113eea450a81827d43c969 (diff) | |
download | android-node-v8-a158d412b323001590099594002ed2426bcbaf8b.tar.gz android-node-v8-a158d412b323001590099594002ed2426bcbaf8b.tar.bz2 android-node-v8-a158d412b323001590099594002ed2426bcbaf8b.zip |
dns: report out of memory properly
This addresses a part of a TODO by properly reporting an out of
memory error to the user instead of reporting `ENOTFOUND`.
PR-URL: https://github.com/nodejs/node/pull/20317
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/parallel/test-http-dns-error.js')
-rw-r--r-- | test/parallel/test-http-dns-error.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-dns-error.js b/test/parallel/test-http-dns-error.js index 06a15c89fb..e3d09a39d0 100644 --- a/test/parallel/test-http-dns-error.js +++ b/test/parallel/test-http-dns-error.js @@ -29,7 +29,7 @@ const assert = require('assert'); const http = require('http'); const https = require('https'); -const host = '*'.repeat(256); +const host = '*'.repeat(64); const MAX_TRIES = 5; let errCode = 'ENOTFOUND'; |