I expect to see an error from WriteRequest function
What did you see instead?
(*rpc.Client).Call doesn't return an error. Error appears only when I remove time.Sleep (line 13)
The text was updated successfully, but these errors were encountered:
smasher164
changed the title
error from rpc.ClientCodec.WriteRequest not returned by rpc.Client.Call
net/rpc: error not returned if ClientCodec.WriteRequest sleeps
Apr 27, 2020
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
it is the latest release
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm trying to write custom rpc.ClientCodec
Here is simplified version: https://play.golang.org/p/T8JLIsxvhto
What did you expect to see?
I expect to see an error from
WriteRequest
functionWhat did you see instead?
(*rpc.Client).Call
doesn't return an error. Error appears only when I removetime.Sleep
(line 13)The text was updated successfully, but these errors were encountered: