I found that the timeout parameter doesn't work in this case, cause the config item RetryIf of HostClient will retry and ignore the timeout if the request is GET/HEAD/PUT method.I think it is not as expected , casue I set the timeout, then the DoDeadline should return before the deadline or return a timeout error.
Code:
I found that the
timeout
parameter doesn't work in this case, cause the config itemRetryIf
ofHostClient
will retry and ignore the timeout if the request is GET/HEAD/PUT method.I think it is not as expected , casue I set the timeout, then theDoDeadline
should return before the deadline or return a timeout error.