Expand the documentation of -max-time to clarify this sets the RPC timeout (#435)
Notably, this adds the words "timeout" and "deadline" to this help text which is helpful for discovering this flag.
This commit is contained in:
parent
f4157743ed
commit
334e3f56de
|
|
@ -133,9 +133,11 @@ var (
|
||||||
is received for this same period then the connection is closed and the
|
is received for this same period then the connection is closed and the
|
||||||
operation fails.`))
|
operation fails.`))
|
||||||
maxTime = flags.Float64("max-time", 0, prettify(`
|
maxTime = flags.Float64("max-time", 0, prettify(`
|
||||||
The maximum total time the operation can take, in seconds. This is
|
The maximum total time the operation can take, in seconds. This sets a
|
||||||
useful for preventing batch jobs that use grpcurl from hanging due to
|
timeout on the gRPC context, allowing both client and server to give up
|
||||||
slow or bad network links or due to incorrect stream method usage.`))
|
after the deadline has past. This is useful for preventing batch jobs
|
||||||
|
that use grpcurl from hanging due to slow or bad network links or due
|
||||||
|
to incorrect stream method usage.`))
|
||||||
maxMsgSz = flags.Int("max-msg-sz", 0, prettify(`
|
maxMsgSz = flags.Int("max-msg-sz", 0, prettify(`
|
||||||
The maximum encoded size of a response message, in bytes, that grpcurl
|
The maximum encoded size of a response message, in bytes, that grpcurl
|
||||||
will accept. If not specified, defaults to 4,194,304 (4 megabytes).`))
|
will accept. If not specified, defaults to 4,194,304 (4 megabytes).`))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue