https://github.com/zapthedingbat/node-dns-fix
https://github.com/zapthedingbat/node-dns-fix
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zapthedingbat/node-dns-fix
- Owner: zapthedingbat
- Created: 2019-03-18T20:03:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:32:27.000Z (over 2 years ago)
- Last Synced: 2025-03-18T03:02:26.037Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Node DNS failure experiment
===
Attempts to reproduce the `EAI_AGAIN` exception thrown in the node application that causes
the process to exit.
## Running
On a machine with node and docker installed just run `npm start`
This will:
- Build a simple node docker image
- Run the docker container with an unresponsive DNS server, and mount the current directory under `/app`
- Execute the `error.js` with node in the container
- Execute the `fix.js` with node in the container
## Result
```
Error: Error sending hot-shots message: Error: getaddrinfo EAI_AGAIN www.example.com
at handleCallback (/app/node_modules/hot-shots/lib/statsd.js:327:32)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at handleCallback (/app/node_modules/hot-shots/lib/statsd.js:339:21)
at process._tickCallback (internal/process/next_tick.js:63:19)
```