PerlDancer / PerlDancer/Dancer2

Can Dancer2 detect a client disconnecting?

Open
#1,444 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Question
Dominant language
Perl
Stars
604
Forks
288
Avg merge
1d 5h
Merged PRs (30d)
5

Description

Is there a way in Dancer2 to detect when the client disconnects, either on purpose by closing the connection, or by dropping it / timing out? This would be especially helpful with HTTP KeepAlive, when the Dancer2 application could maintain persistent things like DB connections while the client is still there, and terminate it properly when it's gone.

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 files, tests, or entry points are named. Investigate Dancer2's request lifecycle and HTTP KeepAlive handling to determine whether client disconnects, dropped connections, and timeouts are observable; done means identifying a supported detection mechanism or documenting the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
backend, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.