Skip to content

Conversation

@Jozott00
Copy link
Collaborator

@Jozott00 Jozott00 commented Nov 3, 2025

Subsystem
gRPC

Problem Description
To prevent the client from potentially waiting indefinitely for a server response, an important feature is the deadline. The deadline defines a specific point in time after which the client stops listening for responses from the server.

Solution
While some implementations employ the concept of Deadlines, others utilize Timeouts. Timeouts specify a Duration after the call starts, permitting its completion. Once the duration elapses, the call is terminated. kotlinx.rpc also uses Timeouts instead of Deadlines.

Currently, call options can only be set by an interceptor. However, eventually users should be able to set them during service stub creation (KRPC-231).

@Jozott00 Jozott00 self-assigned this Nov 3, 2025
@Jozott00 Jozott00 added the feature New feature or request label Nov 3, 2025
@Jozott00 Jozott00 changed the base branch from main to grpc-common November 3, 2025 08:49
@Jozott00 Jozott00 requested a review from Mr3zee November 3, 2025 09:28
@Jozott00 Jozott00 changed the title grpc: Add Timout support grpc: Add Timeout Support Nov 3, 2025
Copy link
Member

@Mr3zee Mr3zee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Please address minor comments before merging

@Jozott00 Jozott00 merged commit a1f9a1b into grpc-common Nov 4, 2025
6 of 7 checks passed
@Jozott00 Jozott00 deleted the grpc/call-options branch November 4, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants