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
F3519718: D13355.id44279.diff
Sun, Dec 22, 10:45 PM
F3519716: D13355.id44278.diff
Sun, Dec 22, 10:45 PM
F3519715: D13355.id44277.diff
Sun, Dec 22, 10:45 PM
F3519714: D13355.id44274.diff
Sun, Dec 22, 10:45 PM
F3519713: D13355.id44258.diff
Sun, Dec 22, 10:45 PM
F3519698: D13355.id.diff
Sun, Dec 22, 10:45 PM
F3519601: D13355.diff
Sun, Dec 22, 10:43 PM
Unknown Object (File)
Thu, Nov 28, 11:10 PM
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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.