Go - IDLE_TIMEOUT support

50 views
Skip to first unread message

Amit Saha

unread,
Jul 24, 2021, 3:32:54 AM7/24/21
to grpc.io
The connectivity semantics documentation [1] states that a connection
will move from READY to IDLE if no active requests have been made for
IDLE_TIMEOUT duration.
However, in Go, i don't see such a configuration, is this state used
in Go grpc implementation or is this being implemented? [2]

Thanks,
Amit

[1] https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md
[2] https://github.com/grpc/grpc-go/pull/4613

Zach Reyes

unread,
Jul 28, 2021, 6:49:51 PM7/28/21
to grpc.io
I don't believe we have this logic about the state change to IDLE after a certain time of not sending RPC's to connection. Forwarding this to my teammate who has been here much longer and can answer this question better.

Menghan Li

unread,
Jul 29, 2021, 1:40:17 PM7/29/21
to grpc.io
IDLE_TIMEOUT isn't supported in go. It's tracked in https://github.com/grpc/grpc-go/issues/1719

The PR you mentioned is a step towards this goal.
But that only covers connection idleness, not at the ClientConn level (e.g. it doesn't turn down resolver and balancers)

Amit Saha

unread,
Jul 29, 2021, 6:40:56 PM7/29/21
to Menghan Li, grpc.io
On Fri, Jul 30, 2021 at 3:40 AM 'Menghan Li' via grpc.io
<grp...@googlegroups.com> wrote:
>
> IDLE_TIMEOUT isn't supported in go. It's tracked in https://github.com/grpc/grpc-go/issues/1719
>
> The PR you mentioned is a step towards this goal.
> But that only covers connection idleness, not at the ClientConn level (e.g. it doesn't turn down resolver and balancers)

Thank you Zach and Menghan.

>
> On Saturday, July 24, 2021 at 12:32:54 AM UTC-7 amits...@gmail.com wrote:
>>
>> The connectivity semantics documentation [1] states that a connection
>> will move from READY to IDLE if no active requests have been made for
>> IDLE_TIMEOUT duration.
>> However, in Go, i don't see such a configuration, is this state used
>> in Go grpc implementation or is this being implemented? [2]
>>
>> Thanks,
>> Amit
>>
>> [1] https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md
>> [2] https://github.com/grpc/grpc-go/pull/4613
>
> --
> You received this message because you are subscribed to the Google Groups "grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/f515e043-09af-4e13-b9fb-8a3cf53991ebn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages