mochi-mqtt / server

The fully compliant, embeddable high-performance Go MQTT v5 server for IoT, smarthome, and pubsub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the broker keeps reporting `read connection: EOF`

skeeey opened this issue · comments

steps:

cd go/src/github.com/mochi-co/mqtt/examples/tcp
go run main.go
1:57PM INF added hook hook=allow-all-auth
1:57PM INF attached listener address=:1883 id=t1 protocol=tcp
1:57PM INF mochi mqtt starting version=2.2.14
1:57PM INF mochi mqtt server started
1:57PM WRN error="read connection: EOF" listener=t1
1:57PM WRN error="read connection: EOF" listener=t1
1:57PM WRN error="read connection: EOF" listener=t1
1:57PM WRN error="read connection: EOF" listener=t1
1:57PM WRN error="read connection: EOF" listener=t1
1:57PM WRN error="read connection: EOF" listener=t1
1:57PM WRN error="read connection: EOF" listener=t1
1:57PM WRN error="read connection: EOF" listener=t1

the server keeps reporting WRN error="read connection: EOF" listener=t1 although I can pub/sub messages successfully

Does this warning message have any impact on the program? can I ignore it?

thanks!

You can ignore it. You are most likely seeing it because the client as disconnected and closed the connection.