Detect if remote connection closed
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 364
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
How can I detect if remote connection closed? Is there any event I can suscribe to? I am currently creating a server that streams big files from Amazon AS3 and I need to detect when the user closes the connection (i.e closes the browser) to also close the read stream... any idea?
Thanks very much beforehand!!
Alex
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.
Research direction
Start by inspecting the server's HTTP connection and streaming lifecycle to find how a client disconnect is exposed. Confirm whether the remote close can be detected reliably and define completion as stopping the Amazon S3 read stream when the browser connection closes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100