Page MenuHomePhabricator

[grpc_clients] bump gRPC connection timeout to 30 seconds
ClosedPublic

Authored by varun on Sep 16 2024, 3:57 PM.
Tags
None
Referenced Files
F3342764: D13355.id44258.diff
Fri, Nov 22, 2:00 AM
F3340156: D13355.diff
Thu, Nov 21, 9:26 PM
Unknown Object (File)
Wed, Nov 20, 7:03 AM
Unknown Object (File)
Wed, Nov 20, 7:03 AM
Unknown Object (File)
Wed, Nov 20, 7:03 AM
Unknown Object (File)
Wed, Nov 20, 7:03 AM
Unknown Object (File)
Wed, Nov 20, 7:03 AM
Unknown Object (File)
Wed, Nov 20, 7:03 AM
Subscribers

Details

Summary

resolves https://linear.app/comm/issue/ENG-9300/bump-identity-service-timeouts

users with bad internet can sometimes see their client time out while talking to identity. it seems that 5 seconds was too short, so bumping to 30 seconds.

Test Plan

tested this in D10329. also tested the native app with increased timeout to confirm there are no regressions

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.Sep 16 2024, 4:14 PM
This revision is now accepted and ready to land.Sep 16 2024, 4:16 PM

Does this affect both native and web?

I think it might be better to bump to something higher. Would there be any downside to 20s or 30s?

Does this affect both native and web?

I think it might be better to bump to something higher. Would there be any downside to 20s or 30s?

Just native and keyserver. The only potential downside is that 20s or 30s may feel unresponsive to users.

add a request timeout of 30 seconds

varun requested review of this revision.Sep 17 2024, 8:51 AM
varun added 1 blocking reviewer(s): ashoat.

30 seconds feels excessive for establishing the tcp connection, but i think it makes sense for completing the actual request

setting @ashoat as blocking

nvm. applying @ashoat 's feedback as intended and deferring the request timeout work

undo request timeout addition

varun retitled this revision from [grpc_clients] bump gRPC connection timeout to 10 seconds to [grpc_clients] bump gRPC connection timeout to 30 seconds.
varun edited the summary of this revision. (Show Details)

fix title and description

This revision was not accepted when it landed; it landed in state Needs Review.Sep 17 2024, 8:59 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.