Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Node process doesn't exit if the destination is not available

Open
#46 3 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluent/fluent-logger-forward-node

All issues in fluent/fluent-logger-forward-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.