janestreet / janestreet/async_rpc_kernel
Heartbeat and sleeping mode
Nobody has claimed this yet.
- 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
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 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