janestreet / janestreet/async_rpc_kernel

Heartbeat and sleeping mode

Open
#3 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

forwarded-to-js-devs not-clear-what-next-step-is
Dominant language
OCaml
Stars
8
Forks
5
PR merge metrics
No merged PRs in 30d

Description

After putting my laptop in sleeping mode, local rpc connections are closed because of the heartbeats check: `Monitor connection closed: No heartbeats received for 10m.` The expected behavior is to keep the local connections. Perhaps wall clock shouldn't be used for that.

PS: I had to increase heartbeats timeout because the connections created on fifo (named one), where closed because of heartbeats even if async seems not to warn about long running job.

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

Start by locating the heartbeat check and the logic that closes local RPC connections after the laptop sleeps; reproduce the reported 10-minute timeout and inspect how wall-clock time is used. Done means local connections survive sleep without being closed by a false heartbeat timeout, while genuine lost-heartbeat detection still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
backend-api-design, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.