net/rpc: error not returned if ClientCodec.WriteRequest sleeps #38681
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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: