server icon indicating copy to clipboard operation
server copied to clipboard

[Missing package issue] C-based client gets disconnected

Open mary-ng5519 opened this issue 2 years ago • 0 comments

Folks, we have a simple unit test on a cross-stacked client written in C (the most prominent one in ICT industry) please help check below logs and attachment Ref: https://github.com/emqx/nanomq nanomq client built from source

D:\Demos\mqtt\examples\events>go run main.go
Mochi MQTT Server initializing... TCP
  Started!  
<< OnConnect client connected nanomq-d28f8d41: {FixedHeader:{Remaining:27 Type:1 Qos:0 Dup:false Retain:false} AllowClients:[] Topics:[] ReturnCodes:[] ProtocolName:[77 81 84 84] Qoss:[] Payload:[] Username:[] Password:[] WillMessage:[] ClientIdentifier:nanomq-d28f8d41 TopicName: WillTopic: PacketID:0 Keepalive:60 ReturnCode:0 ProtocolVersion:4 WillQos:0 ReservedBit:0 CleanSession:true WillFlag:false WillRetain:false UsernameFlag:false PasswordFlag:false SessionPresent:false}
<< OnDisconnect client dicconnected nanomq-d28f8d41: missing packet id
D:\Demos\gomqtt\nanomq\build\nanomq>nanomq.exe sub start -t "direct/publish"
connect_cb: connected!
disconnected
D:\Demos\mqtt\examples\events>go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=D:\Progra~1\Go\bin
set GOCACHE=C:\Users\phineas\AppData\Local\go-build
set GOENV=D:\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=D:\Progra~1\Go\goget\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\Progra~1\Go\goget
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=D:\Progra~1\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\Progra~1\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.18
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=D:\Demos\gomqtt\MQTT.js\mqtt\go.mod
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\phineas\AppData\Local\Temp\go-build1490508260=/tmp/go-build -gno-record-gcc-switches

mary-ng5519 avatar Apr 09 '22 19:04 mary-ng5519