You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once added the client.Destroy(true) call (which just cancel the context of the client, so all workers can return and client.Wait() will return) will result in multiple restart
What did you expect to see?
benchmark starts and finishes both only one time
What did you see instead?
benchmark starts multiple times and finishes only one time
What version of Go are you using (
go version
)?go version go1.10beta1 darwin/amd64
Does this issue reproduce with the latest release?
yes with go1.9.2
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jeffrey/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/jeffrey/GoSpace:/Users/jeffrey/GolangProjects"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/r9/zplfsltx4mx8yf05hrx0dnwm0000gp/T/go-build516212567=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
I was trying to make a benchmark with my mqtt client lib (libmqtt), using go test as
And here is the code
Once added the
client.Destroy(true)
call (which just cancel the context of the client, so all workers can return andclient.Wait()
will return) will result in multiple restartWhat did you expect to see?
benchmark starts and finishes both only one time
What did you see instead?
benchmark starts multiple times and finishes only one time
Here is the output for the benchmark
The text was updated successfully, but these errors were encountered: