Node process doesn't exit if the destination is not available
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- node.js, typescript
- Domain
- networking
Research direction
Start by tracing FluentClient.emit({}) through the socket connection and timeout handling when the fluentd destination at localhost:24224 is unavailable. Verify the behavior with the provided Node.js example and confirm that an unavailable destination produces a timely rejection or otherwise allows the process, including an AWS Lambda invocation, to finish.
Written by the indexing model from the issue text.
Description
I stopped the fluentd server and tried the below code with node
const FluentClient = require("@fluent-org/logger").FluentClient;
const flDlogger = new FluentClient("test", {
eventMode: "Message",
socket: {
host: "localhost",
port: 24224,
timeout: 3000,
}
});
flDlogger.emit({}).then(() => { console.log("Sent Message Successfully")}).catch((e) => { console.log(e);})
The node process did not timeout/quit until the server becomes available, is there any flag/way to exit the node process if the destination becomes unavailable, i want to try this in AWS lambda and if the destination is not available then the lambda may run always.
- Dominant language
- TypeScript
- Stars
- 12
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fluent/fluent-logger-forward-node
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
fluent/fluent-logger-forward-node#40 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
fluent/fluent-logger-forward-node#32 · 6 comments ·
All issues in fluent/fluent-logger-forward-node
Similar issues
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Crush Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ElementsProject/cln-application#167 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Quantco/pnpm-licenses#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100