restify / restify/node-restify

socket close on request done ?

Open
#1,952 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.7k
Forks
975
Avg merge
1d 6h
Merged PRs (30d)
5

Description

Hi,

If i understand well, on each requests, restify will open a socket to manage the request.
If, on the request, we have promises who is not finish to run and request is done (next() method is called). Do restify close the socket and automatically close all promises running inside the socket ?

On my case, i develop a bot who use restify to handle requests and sometimes i would like to close all promises who is running by closing the request.

Thanks

Contributor guide

Open the contributing guide

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.

Research direction

No file, test, or entry point is named. Begin by tracing Restify's request lifecycle around next(), socket handling, and unresolved promises; done means establishing and documenting whether ending a request closes the socket or cancels work still running inside it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.