Re: [go-nuts] Returning success from a canceled goroutine in an gRPC server stub

2025-04-06 Thread 'Axel Wagner' via golang-nuts
One thing to try, that at least helps a little bit, is to use `ctx.Deadline` to figure out if there is a deadline is set, and then derive a new context with a shorter deadline and pass that to `msg.Forward`. Which gives you a little bit of room to return a successful response. The way I understand

[go-nuts] Returning success from a canceled goroutine in an gRPC server stub

2025-03-26 Thread 'Bushnell, Thomas' via golang-nuts
I would like a gRPC server, written in Go, to be able to implement something like the following. My question is whether the "good thing" happens enough to provide a benefit. It is fine if sometimes the "good thing" does not happen. The server is receiving updates from a large number of clients b