question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to set client dealine in browser environment?

See original GitHub issue

I have a go grpc backend, and sent grpc-web request from the browser.

If I implanted a check for the request deadline on server, like:

d, ok := ctx.Deadline()

The question is how to set it in grpc-web? I use envoy as the proxy.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
johanbrandhorstcommented, Jun 28, 2021

Hm, I think you’re right I linked the wrong thing. I think you can manually set the timeout with a header called grpc-timeout: 10s (for 10 seconds) when making the request on the client. I haven’t got an example of that.

0reactions
fatfatsoncommented, Sep 5, 2021

Sorry, it’s 10S for 10 seconds. See the gRPC spec for the timeout units: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests

thanks! but if there’s a spell mistake, the browser client won’t receive a error callback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gRPC and Deadlines
Deadlines allow gRPC clients to specify how long they are willing to wait for an RPC to complete before the RPC is terminated...
Read more >
Repository Configuration — Deadline 10.1.23.6 documentation
These options can be modified at any time from the Deadline Monitor while in Super User Mode by selecting Tools -> Configure Repository...
Read more >
About client settings in Configuration Manager - Microsoft Learn
Manage all client settings in the Configuration Manager console ... Required deployments for the computer always install at the deadline.
Read more >
gRPC Deadline Vs REST HTTP timeout (Explained) - YouTube
In a fault-tolerant distributed environment, deadlines and timeouts ... Deadlines /Timeouts gRPC allows clients to specify how long they are ...
Read more >
How to Configure: Deadline Render Manager - YouTube
Your browser can't play this video. ... so for this weeks tutorial I decided to record a video on how to install deadline,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found