Feature Request: Keepalive Support in ttrpc
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go
- Domain
- api, networking
Research direction
Start by reading PROTOCOL.md and RFC 7540 Section 6.7 to understand the existing protocol and the proposed PING/PONG messages. Define how ReadIdleTimeout and PingTimeout apply to both clients and servers; done means the protocol and implementation support health checks and close unresponsive connections.
Written by the indexing model from the issue text.
Description
This feature request proposes the implementation of a keepalive mechanism in ttrpc based on the HTTP/2 PING frame as defined in RFC 7540, Section 6.7 to distinguish between a slow remote procedure call (RPC) and a dead or unresponsive client or server. The keepalive feature will allow clients and servers to periodically check the health of the connection.
The ttrpc protocol, as described in PROTOCOL.md, will be extended with two new message types:
- PING (0x04): A message sent by the client to the server to check if the connection is alive.
- PONG (0x05): A message sent by the server in response to a PING, confirming that the connection is active.
Both server and client will be able to set this functionality with the following two options (based on golang http2 implementation):
- ReadIdleTimeout: The timeout after which a health check using a PING frame will be sent if no data frames are received on the connection (0 means disabled)
- PingTimeout: The timeout after which the connection will be closed if a response to a PING is not received (0 means disabled)
- Dominant language
- Go
- Stars
- 674
- Forks
- 90
- Avg merge
- 16h 32m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from containerd/ttrpc
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
containerd/ttrpc#258 ·
-
Occasional streamHandler map memory leakMay be free again @fuweid claimed this 176 days ago, and no pull request is open. Open
containerd/ttrpc#236 · 1 reaction · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
containerd/ttrpc#212 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
containerd/ttrpc#184 · 9 comments ·
-
ttrpc client send hang, even ctx is timeout.Possibly taken @novahe claimed this 251 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
containerd/ttrpc#174 · 7 comments ·
All issues in containerd/ttrpc
Similar issues
-
ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
jordansmall/spindrift#7895 ·
Maintainers usually reply within 1 day
-
documentation priority: medium skill: intermediate status: ready for dev
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
hyperledger-labs/fabric-smart-client#2830 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
P3 tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day