Description
What version of Go are you using (go version
)?
1.14.2
, as stated on the Go Playground (as of May 4th, 2020).
Does this issue reproduce with the latest release?
Yes, 1.14.2
is the latest release.
What operating system and processor architecture are you using (go env
)?
Environment is the Go Playground.
Note that I cannot reproduce this error on my 2019 Macbook, running 1.14.2
.
What did you do?
I ran the demo on the Go documentation with os/exec:CommandContext
, I discovered that the timeout example seemed to have strange behavior.
It seemed the demo was hitting the timeout limit of the Go Playground, ignoring the 100ms
context timeout.
Modifying the demo a little bit, I discovered that the timeout on the Go Playground was being ignored completely. See below screenshot.
See Go Playground link: https://play.golang.org/p/ckZbgZ7n1tM
What did you expect to see?
The 100ms
timeout from the context should have been honored when running exec.CommandContext(...)
. It seems based on #21880 and me running the demo on my laptop that this behavior worked in previous releases, and this bug might exist on different environments.
What did you see instead?
The 100ms
timeout is being ignored on the Go Playground environment.